Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142597057
D38164.id115423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
565 B
Referenced Files
None
Subscribers
None
D38164.id115423.diff
View Options
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -196,6 +196,15 @@
goto bad;
}
+ if (nh->nh_flags & (NHF_BLACKHOLE | NHF_REJECT)) {
+ IP6STAT_INC(ip6s_cantforward);
+ if ((nh->nh_flags & NHF_REJECT) && (mcopy != NULL)) {
+ icmp6_error(mcopy, ICMP6_DST_UNREACH,
+ ICMP6_DST_UNREACH_REJECT, 0);
+ }
+ goto bad;
+ }
+
/*
* Source scope check: if a packet can't be delivered to its
* destination for the reason that the destination is beyond the scope
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 9:21 AM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27839477
Default Alt Text
D38164.id115423.diff (565 B)
Attached To
Mode
D38164: netinet6: honor blackhole/unreach routes in the non-fastforwading code.
Attached
Detach File
Event Timeline
Log In to Comment