Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103986476
D14254.id39022.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
605 B
Referenced Files
None
Subscribers
None
D14254.id39022.diff
View Options
Index: sys/netinet6/icmp6.c
===================================================================
--- sys/netinet6/icmp6.c
+++ sys/netinet6/icmp6.c
@@ -2305,6 +2305,16 @@
goto bad;
}
+ /*
+ * If the target is global, then the nh address
+ * will have its scope id stripped. Insert the scope
+ * id from the source interface.
+ */
+ if (in6_addrscope(&reddst6) == IPV6_ADDR_SCOPE_GLOBAL) {
+ if (in6_setscope(&nh6.nh_addr, m->m_pkthdr.rcvif, NULL))
+ goto freeit;
+ }
+
if (IN6_ARE_ADDR_EQUAL(&src6, &nh6.nh_addr) == 0) {
nd6log((LOG_ERR,
"ICMP6 redirect rejected; "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 1:31 AM (18 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14998141
Default Alt Text
D14254.id39022.diff (605 B)
Attached To
Mode
D14254: ICMPv6: fix redirects containing global addresses
Attached
Detach File
Event Timeline
Log In to Comment