Page MenuHomeFreeBSD

D38164.id115423.diff
No OneTemporary

D38164.id115423.diff

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

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)

Event Timeline