freebsd-src/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 sockets: garbage collect PRCOREQUESTS and stale comment 2024-05-07 14:15:49 -07:00
icmp6.h
in6.c icmp6: move ICMPv6 related tunables to the files where they are used 2024-03-24 09:13:23 -07:00
in6.h in6.h: expose s6_addr* definitions to user level 2024-05-02 10:24:37 -05:00
in6_cksum.c
in6_fib.c
in6_fib.h
in6_fib_algo.c
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 icmp6: move ICMPv6 related tunables to the files where they are used 2024-03-24 09:13:23 -07:00
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 netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
in6_var.h
ip6.h
ip6_ecn.h
ip6_fastfwd.c
ip6_forward.c
ip6_gre.c
ip6_id.c
ip6_input.c netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
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 netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
ip_fw_nat64.h
ip_fw_nptv6.h
mld6.c netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
mld6.h
mld6_var.h
nd6.c nd6: Fix the routing table subscription 2024-07-25 10:27:39 -04:00
nd6.h icmp6: move ICMPv6 related tunables to the files where they are used 2024-03-24 09:13:23 -07:00
nd6_nbr.c netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
nd6_rtr.c icmp6: move ICMPv6 related tunables to the files where they are used 2024-03-24 09:13:23 -07:00
pim6.h
pim6_var.h
raw_ip6.c netinet: add a probe point for IP, IP6, ICMP, ICMP6, UDP and TCP stats counters 2024-04-08 17:29:59 +02:00
raw_ip6.h
route6.c
scope6.c
scope6_var.h
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