HardenedBSD/sys/netinet6
Mark Johnston 0c605af3f9 netinet: Explicitly disallow connections to the unspecified address
If the V_connect_ifaddr_wild sysctl says that we shouldn't infer a
destination address, return an error.  Otherwise it's possible for use
of an unspecified foreign address to trigger a subsequent assertion
failure, for example in in_pcblookup_hash_locked().

Similarly, if no interface addresses are assigned, fail quickly upon an
attempt to connect to the unspecified address.

Reported by:	Shawn Webb <shawn.webb@hardenedbsd.org>
MFC after:	2 weeks
Reviewed by:	zlei, allanjude, emaste
Differential Revision:	https://reviews.freebsd.org/D46454
2024-08-29 13:11:15 +00:00
..
dest6.c
frag6.c
icmp6.c
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 netinet: Explicitly disallow connections to the unspecified address 2024-08-29 13:11:15 +00:00
in6_pcb.h
in6_proto.c
in6_rmx.c in6_rmx: remove unnecessary socketvar.h 2024-05-07 14:15:56 -07:00
in6_rss.c
in6_rss.h
in6_src.c
in6_var.h
in6.c
in6.h
ip6_ecn.h
ip6_fastfwd.c
ip6_forward.c
ip6_gre.c
ip6_id.c
ip6_input.c
ip6_mroute.c
ip6_mroute.h
ip6_output.c ip6_output: place IPSEC_OUTPUT hook after the outgoing ifp is calculated 2024-07-12 06:29:31 +03:00
ip6_var.h
ip6.h
ip_fw_nat64.h
ip_fw_nptv6.h
mld6_var.h
mld6.c
mld6.h
nd6_nbr.c
nd6_rtr.c
nd6.c nd6: Fix the routing table subscription 2024-07-25 10:27:39 -04:00
nd6.h
pim6_var.h
pim6.h
raw_ip6.c
raw_ip6.h
route6.c
scope6_var.h
scope6.c
sctp6_usrreq.c sctp(4): Fix typos in source code comments 2024-07-21 10:57:22 +02:00
sctp6_var.h
send.c
send.h
tcp6_var.h
udp6_usrreq.c Revert "udp: improve handling of cached route" 2024-07-30 11:46:27 +02:00
udp6_var.h