Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178102081
D62078.1795967254.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
658 B
Referenced Files
None
Subscribers
None
D62078.1795967254.diff
View Options
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -2320,6 +2320,7 @@
struct ifnet *ifp = ifa->ifa_ifp;
struct carp_if *cif = ifp->if_carp;
struct carp_softc *sc = ifa->ifa_carp;
+ sa_family_t af = ifa->ifa_addr->sa_family;
int i, index;
KASSERT(sc != NULL, ("%s: %p not attached", __func__, ifa));
@@ -2353,7 +2354,6 @@
}
carp_ifa_delroute(ifa);
- carp_multicast_cleanup(cif, ifa->ifa_addr->sa_family);
ifa->ifa_carp = NULL;
ifa_free(ifa);
@@ -2367,6 +2367,8 @@
else
CARP_UNLOCK(sc);
+ carp_multicast_cleanup(cif, af);
+
if (!keep_cif)
CIF_FREE(cif);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 3:47 PM (3 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42033533
Default Alt Text
D62078.1795967254.diff (658 B)
Attached To
Mode
D62078: carp: Leave the multicast groups without the softc lock
Attached
Detach File
Event Timeline