Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177568707
D43031.1794762632.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
724 B
Referenced Files
None
Subscribers
None
D43031.1794762632.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
Sun, Nov 15, 5:10 PM (13 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41745706
Default Alt Text
D43031.1794762632.diff (724 B)
Attached To
Mode
D43031: ip_mroute: allow MRT_DEL_MFC even if there are pending upcalls
Attached
Detach File
Event Timeline