1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/sys/netinet
Kristof Provost e27970ae8f netinet: handle blackhole routes
If during ip_forward() we find a blackhole (or reject) route we should stop
processing and count this in the 'cantforward' counter, just like we already do
for IPv6.
Blackhole routes are set to use the loopback interface, so we don't actually
incorrectly forward traffic, but we do fail to count it as unroutable.

Test this, both for IPv4 and IPv6.

Reviewed by:	melifaro
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D47529
2024-11-20 16:52:41 +01:00
..
cc tcp: Use segment size excluding tcp options for all cwnd calculations 2024-11-14 10:16:57 +01:00
khelp
libalias
netdump
tcp_stacks Change the SOCKBUF_LOCK calls to use the more refined SOCK_XXXBUF_LOCK/UNLOCK. 2024-11-15 12:37:05 -05:00
accf_data.c
accf_dns.c
accf_http.c
accf_tls.c
dccp.h
icmp6.h
icmp_var.h
if_ether.c
if_ether.h
igmp_var.h
igmp.c netinet*: Add assertions for some places that don't support M_EXTPG mbufs 2024-10-31 16:32:32 -04:00
igmp.h
in_cksum.c
in_debug.c
in_fib_algo.c
in_fib_dxr.c
in_fib.c
in_fib.h
in_gif.c
in_jail.c
in_kdtrace.c netinet: default mib counter probe points off 2024-11-20 09:52:48 +01:00
in_kdtrace.h netinet: default mib counter probe points off 2024-11-20 09:52:48 +01:00
in_mcast.c
in_pcb_var.h
in_pcb.c inpcb: gc unused argument of in_pcbconnect() 2024-11-14 11:39:13 -08:00
in_pcb.h inpcb: gc unused argument of in_pcbconnect() 2024-11-14 11:39:13 -08:00
in_prot.c
in_proto.c
in_rmx.c
in_rss.c
in_rss.h
in_systm.h
in_var.h
in.c
in.h
ip6.h
ip_carp_nl.h
ip_carp.c
ip_carp.h
ip_divert.c
ip_divert.h
ip_dummynet.h
ip_ecn.c
ip_ecn.h
ip_encap.c
ip_encap.h
ip_fastfwd.c
ip_fw.h
ip_gre.c
ip_icmp.c
ip_icmp.h
ip_id.c
ip_input.c netinet: handle blackhole routes 2024-11-20 16:52:41 +01:00
ip_mroute.c netinet*: Add assertions for some places that don't support M_EXTPG mbufs 2024-10-31 16:32:32 -04:00
ip_mroute.h
ip_options.c netinet*: Add assertions for some places that don't support M_EXTPG mbufs 2024-10-31 16:32:32 -04:00
ip_options.h
ip_output.c
ip_reass.c
ip_var.h
ip.h
pim_var.h
pim.h
raw_ip.c
sctp_asconf.c
sctp_asconf.h
sctp_auth.c
sctp_auth.h
sctp_bsd_addr.c sctp: improve handling of address changes 2024-11-03 10:20:08 +01:00
sctp_bsd_addr.h
sctp_cc_functions.c
sctp_constants.h
sctp_crc32.c
sctp_crc32.h
sctp_header.h
sctp_indata.c
sctp_indata.h
sctp_input.c
sctp_input.h
sctp_kdtrace.c
sctp_kdtrace.h
sctp_lock_bsd.h
sctp_module.c
sctp_os_bsd.h
sctp_os.h
sctp_output.c
sctp_output.h
sctp_pcb.c sctp: fix debug message 2024-11-03 11:20:54 +01:00
sctp_pcb.h sctp: improve handling of address changes 2024-11-03 10:20:08 +01:00
sctp_peeloff.c
sctp_peeloff.h
sctp_ss_functions.c
sctp_structs.h
sctp_syscalls.c
sctp_sysctl.c
sctp_sysctl.h
sctp_timer.c
sctp_timer.h
sctp_uio.h
sctp_usrreq.c
sctp_var.h
sctp.h
sctputil.c
sctputil.h
siftr.c siftr: remove pointless assertion 2024-11-14 11:39:12 -08:00
tcp_accounting.h
tcp_ecn.c
tcp_ecn.h
tcp_fastopen.c
tcp_fastopen.h
tcp_fsm.h
tcp_hostcache.c
tcp_hpts.c
tcp_hpts.h
tcp_input.c tcp: fix cwnd recalculation during limited transmit 2024-11-14 09:19:49 +01:00
tcp_log_buf.c
tcp_log_buf.h
tcp_lro_hpts.c tcp: define tcp_lro_log() only when TCP_BLACKBOX is defined 2024-11-17 19:21:01 +01:00
tcp_lro.c
tcp_lro.h
tcp_offload.c
tcp_offload.h
tcp_output.c tcp: Use segment size excluding tcp options for all cwnd calculations 2024-11-14 10:16:57 +01:00
tcp_pcap.c
tcp_pcap.h
tcp_ratelimit.c
tcp_ratelimit.h
tcp_reass.c tcp: change SOCKBUF_* macros to SOCK_[RECV|SEND]BUF_* macros 2024-11-14 02:08:12 +01:00
tcp_sack.c tcp: refactor cwnd during SACK transmissions to allow TSO 2024-10-29 19:04:12 +01:00
tcp_seq.h
tcp_stats.c
tcp_subr.c tcp: remove the looping on pcb count in tcp_destroy() 2024-11-14 11:39:12 -08:00
tcp_syncache.c inpcb: gc unused argument of in_pcbconnect() 2024-11-14 11:39:13 -08:00
tcp_syncache.h
tcp_timer.c tcp: fix the initial CWND when a SYN retransmission happened 2024-11-05 09:52:42 +01:00
tcp_timer.h
tcp_timewait.c
tcp_usrreq.c inpcb: gc unused argument of in_pcbconnect() 2024-11-14 11:39:13 -08:00
tcp_var.h
tcp.h
tcpip.h
toecore.c
toecore.h
udp_usrreq.c inpcb: gc unused argument of in_pcbconnect() 2024-11-14 11:39:13 -08:00
udp_var.h
udp.h
udplite.h