At detaching IPv6 raw socket, also finish IPv6 multicast router.

Approved by: jkh

Submitted by: fenner
This commit is contained in:
Yoshinobu Inoue 2000-02-27 18:35:10 +00:00
parent c107f9e04f
commit e7e3ecb6c3

View File

@ -503,6 +503,8 @@ rip6_detach(struct socket *so)
if (inp == 0)
panic("rip6_detach");
/* xxx: RSVP */
if (so == ip6_mrouter)
ip6_mrouter_done();
if (inp->in6p_icmp6filt) {
FREE(inp->in6p_icmp6filt, M_PCB);
inp->in6p_icmp6filt = NULL;