Page MenuHomeFreeBSD

D38164.id115422.diff
No OneTemporary

D38164.id115422.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_ADMIN, 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
Tue, Sep 29, 6:09 PM (2 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39889803
Default Alt Text
D38164.id115422.diff (564 B)

Event Timeline