Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147785031
D15405.1784363540.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
840 B
Referenced Files
None
Subscribers
None
D15405.1784363540.diff
View Options
Index: sys/netinet6/nd6.c
===================================================================
--- sys/netinet6/nd6.c
+++ sys/netinet6/nd6.c
@@ -1366,6 +1366,31 @@
return (1);
}
+ /*
+ * Even if the address matches none of our addresses, it might be
+ * in a a connected route.
+ */
+ bzero(&info, sizeof(info));
+
+ /*
+ * We only need to check all FIBs if add_addr_allfibs
+ * is unset. If set, checking any FIB will suffice.
+ */
+ fibnum = V_rt_add_addr_allfibs ? rt_numfibs - 1 : 0;
+ for (; fibnum < rt_numfibs; fibnum++) {
+ error = rib_lookup_info(fibnum, (const struct sockaddr *)addr,
+ 0, 0, &info);
+
+ if (error == 0) {
+ if ((info.rti_flags & RTF_CONNECTED) &&
+ (info.rti_ifp == ifp ||
+ info.rti_ifp->if_bridge == ifp->if_bridge))
+ return (1);
+
+ break;
+ }
+ }
+
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 8:32 AM (4 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29177888
Default Alt Text
D15405.1784363540.diff (840 B)
Attached To
Mode
D15405: Match IPv6 neighbor routes when they are marked with RTF_CONNECTED.
Attached
Detach File
Event Timeline
Log In to Comment