Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156415706
D43031.id131456.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
724 B
Referenced Files
None
Subscribers
None
D43031.id131456.diff
View Options
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -1250,22 +1250,17 @@
MRW_WLOCK();
- rt = mfc_find(&origin, &mcastgrp);
+ LIST_FOREACH(rt, &V_mfchashtbl[MFCHASH(origin, mcastgrp)], mfc_hash) {
+ if (in_hosteq(rt->mfc_origin, origin) &&
+ in_hosteq(rt->mfc_mcastgrp, mcastgrp))
+ break;
+ }
if (rt == NULL) {
MRW_WUNLOCK();
return EADDRNOTAVAIL;
}
- /*
- * free the bw_meter entries
- */
- free_bw_list(rt->mfc_bw_meter_leq);
- rt->mfc_bw_meter_leq = NULL;
- free_bw_list(rt->mfc_bw_meter_geq);
- rt->mfc_bw_meter_geq = NULL;
-
- LIST_REMOVE(rt, mfc_hash);
- free(rt, M_MRTABLE);
+ expire_mfc(rt);
MRW_WUNLOCK();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 1:10 PM (5 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33014631
Default Alt Text
D43031.id131456.diff (724 B)
Attached To
Mode
D43031: ip_mroute: allow MRT_DEL_MFC even if there are pending upcalls
Attached
Detach File
Event Timeline
Log In to Comment