Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159360291
D29594.id86863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
859 B
Referenced Files
None
Subscribers
None
D29594.id86863.diff
View Options
Index: sys/netinet/in_mcast.c
===================================================================
--- sys/netinet/in_mcast.c
+++ sys/netinet/in_mcast.c
@@ -1887,8 +1887,8 @@
struct rm_priotracker in_ifa_tracker;
struct ifnet *ifp;
struct nhop_object *nh;
- uint32_t fibnum;
+ KASSERT(inp != NULL, ("%s: inp must not be NULL", __func__));
KASSERT(gsin->sin_family == AF_INET, ("%s: not AF_INET", __func__));
KASSERT(IN_MULTICAST(ntohl(gsin->sin_addr.s_addr)),
("%s: not multicast", __func__));
@@ -1901,8 +1901,7 @@
if_ref(ifp);
IN_IFADDR_RUNLOCK(&in_ifa_tracker);
} else {
- fibnum = inp ? inp->inp_inc.inc_fibnum : RT_DEFAULT_FIB;
- nh = fib4_lookup(fibnum, gsin->sin_addr, 0, NHR_NONE, 0);
+ nh = fib4_lookup(inp->inp_inc.inc_fibnum, gsin->sin_addr, 0, NHR_NONE, 0);
if (nh != NULL) {
ifp = nh->nh_ifp;
if_ref(ifp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 14, 6:56 AM (6 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33944486
Default Alt Text
D29594.id86863.diff (859 B)
Attached To
Mode
D29594: Always use inp fib in the inp_lookup_mcast_ifp().
Attached
Detach File
Event Timeline
Log In to Comment