diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-08 10:23:33 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-07-08 10:23:33 +0000 |
commit | 1fa7f40ee5c48bd5214cd693bc53cf0b2d24d00c (patch) | |
tree | 97c60419c6bd5038c88376262740735a41a00cea /sys/netinet6/in6_ifattach.c | |
parent | c61f99c80ad646351cdc82d3524cf64a3b1cfa3e (diff) |
on interface removal, clear multicast forwarding stuff. from kame
Diffstat (limited to 'sys/netinet6/in6_ifattach.c')
-rw-r--r-- | sys/netinet6/in6_ifattach.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c index ec27e31b48a..186e4cc6e50 100644 --- a/sys/netinet6/in6_ifattach.c +++ b/sys/netinet6/in6_ifattach.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_ifattach.c,v 1.34 2003/06/28 14:42:16 itojun Exp $ */ +/* $OpenBSD: in6_ifattach.c,v 1.35 2003/07/08 10:23:32 itojun Exp $ */ /* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */ /* @@ -53,6 +53,7 @@ #include <netinet6/in6_ifattach.h> #include <netinet6/ip6_var.h> #include <netinet6/nd6.h> +#include <netinet6/ip6_mroute.h> unsigned long in6_maxmtu = 0; @@ -658,6 +659,9 @@ in6_ifdetach(ifp) struct sockaddr_in6 sin6; struct in6_multi_mship *imm; + /* remove ip6_mrouter stuff */ + ip6_mrouter_detach(ifp); + /* remove neighbor management table */ nd6_purge(ifp); |