summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-04 22:25:10 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-04 22:25:10 +0000
commit4be57abb7fb651560cbcf78ea7dc1c1757880be6 (patch)
tree278289fddd7ac6e387fee27d6cb00984c8b04005 /sys/net
parentf83070afdbed020f516f3b172753f5da64d49e61 (diff)
Remove the multicast address when we unconfigure the syncif.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_pfsync.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 83134339d89..1f2c8f14f52 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.33 2004/05/17 17:15:07 mickey Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.34 2004/06/04 22:25:09 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -768,6 +768,10 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
sc->sc_statep_net.s = NULL;
splx(s);
}
+ if (imo->imo_num_memberships > 0) {
+ in_delmulti(imo->imo_membership[--imo->imo_num_memberships]);
+ imo->imo_multicast_ifp = NULL;
+ }
break;
}
if ((sifp = ifunit(pfsyncr.pfsyncr_syncif)) == NULL)