freebsd-dev/sys/netinet6
Alexander V. Chernikov 30dd227cff netinet6: honor blackhole/unreach routes in the non-fastforwading code.
Currently, under the conditions specified below, IPv6 ingress packet
 processing can ignore blackhole/reject flag on the prefix. The packet
 will instead be looped locally till TTL expiration and a single ICMPv6
 unreachable message will be send to the source even in case of
 RTF_BLACKHOLE.
The following conditions needs hold to make the scenario happen:
* IPv6 forwarding is enabled
* Packet is not fast-forwarded
* Destination prefix has either RTF_BLACKHOLE or RTF_REJECT flag
Fix this behavior by checking for the blackhole/reject flags in
ip6_forward().

Reported by:	Dmitriy Smirnov <fox@sage.su>
Reviewed by:	ae
Differential Revision: https://reviews.freebsd.org/D38164
MFC after:	3 days
2023-01-22 18:48:07 +00:00
..
dest6.c
frag6.c
icmp6.c pf: apply the network stack's ICMP rate limiting to ICMP errors sent by pf 2022-10-14 10:36:16 +02:00
icmp6.h
in6_cksum.c
in6_fib_algo.c
in6_fib.c
in6_fib.h
in6_gif.c
in6_ifattach.c
in6_ifattach.h
in6_jail.c
in6_mcast.c
in6_pcb.c tcp: embed inpcb into tcpcb 2022-12-07 09:00:48 -08:00
in6_pcb.h
in6_proto.c netinet*: add back necessary headers 2022-10-26 08:16:44 -07:00
in6_rmx.c
in6_rss.c
in6_rss.h
in6_src.c
in6_var.h netinet*: remove PRC_ constants and streamline ICMP processing 2022-10-03 20:53:04 -07:00
in6.c
in6.h in6: Consolidate IN6_ARE_ADDR_EQUAL definitions 2022-11-02 13:46:24 -04:00
ip6_ecn.h
ip6_fastfwd.c
ip6_forward.c netinet6: honor blackhole/unreach routes in the non-fastforwading code. 2023-01-22 18:48:07 +00:00
ip6_gre.c ip_gre: Fix a common typo in source code comments 2023-01-19 14:13:02 +01:00
ip6_id.c
ip6_input.c netinet*: remove PRC_ constants and streamline ICMP processing 2022-10-03 20:53:04 -07:00
ip6_mroute.c
ip6_mroute.h
ip6_output.c sys: Nuke double-semicolons 2022-11-02 09:34:20 -06:00
ip6_var.h netinet*: remove PRC_ constants and streamline ICMP processing 2022-10-03 20:53:04 -07:00
ip6.h
ip_fw_nat64.h
ip_fw_nptv6.h
mld6_var.h
mld6.c inet6: Fix LINT build 2022-12-20 15:23:49 -05:00
mld6.h
nd6_nbr.c carp: fix regression panic from ccd69bd573 2022-10-17 11:39:40 -07:00
nd6_rtr.c
nd6.c nd6: fix panic in lltable_drop_entry_queue() 2023-01-15 15:22:42 +00:00
nd6.h
pim6_var.h
pim6.h
raw_ip6.c netinet*: remove PRC_ constants and streamline ICMP processing 2022-10-03 20:53:04 -07:00
raw_ip6.h
route6.c
scope6_var.h
scope6.c
sctp6_usrreq.c sctp: minor changes due to upstreaming of Glebs recent changes 2022-11-06 23:06:40 +01:00
sctp6_var.h sctp: minor changes due to upstreaming of Glebs recent changes 2022-11-06 23:06:40 +01:00
send.c
send.h
tcp6_var.h
udp6_usrreq.c udp6: fix build with INET6 and without INVARIANTS 2022-12-07 12:27:15 -08:00
udp6_var.h