Make that note that we really should be checking the viftable

in ip_mroute.c for duplicate tunnel entries, too.  Well, what
really needs to happen is that the mrouting code needs to be
changed to work w/ `gif' tunnels... but...
This commit is contained in:
thorpej 2000-07-05 21:32:51 +00:00
parent 4348603862
commit f77f419c50
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_encap.c,v 1.2 2000/07/05 18:45:26 thorpej Exp $ */
/* $NetBSD: ip_encap.c,v 1.3 2000/07/05 21:32:51 thorpej Exp $ */
/* $KAME: ip_encap.c,v 1.30 2000/04/19 04:29:37 itojun Exp $ */
/*
@ -386,6 +386,12 @@ encap_attach(af, proto, sp, sm, dp, dm, psw, arg)
goto fail;
}
/*
* XXX NEED TO CHECK viftable IN THE ip_mroute CODE!!!
* XXX Actually, that code needs to be replaced with
* XXX new code that uses `gif' tunnels.
*/
ep = malloc(sizeof(*ep), M_NETADDR, M_NOWAIT); /*XXX*/
if (ep == NULL) {
error = ENOBUFS;