opnsense-src/sys/netinet6
Roy Marples ec5691aa2f net: Allow binding of unspecified address without address existance
Previously in_pcbbind_setup returned EADDRNOTAVAIL for empty
V_in_ifaddrhead (i.e., no IPv4 addresses configured) and in6_pcbbind
did the same for empty V_in6_ifaddrhead (no IPv6 addresses).

An equivalent test has existed since 4.4-Lite.  It was presumably done
to avoid extra work (assuming the address isn't going to be found
later).

In normal system operation *_ifaddrhead will not be empty: they will
at least have the loopback address(es).  In practice no work will be
avoided.

Further, this case caused net/dhcpd to fail when run early in boot
before assignment of any addresses.  It should be possible to bind the
unspecified address even if no addresses have been configured yet, so
just remove the tests.

The now-removed "XXX broken" comments were added in 59562606b9,
which converted the ifaddr lists to TAILQs.  As far as I (emaste) can
tell the brokenness is the issue described above, not some aspect of
the TAILQ conversion.

PR:		253166
Reviewed by:	ae, bz, donner, emaste, glebius
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D32563

(cherry picked from commit 5c5340108e)
2021-11-18 19:28:56 -05:00
..
dest6.c
frag6.c frag6: do less work in frag6_slowtimo if possible 2021-08-18 09:44:45 +00:00
icmp6.c lltable: Add support for "child" LLEs holding encap for IPv4oIPv6 entries. 2021-09-07 21:02:58 +00:00
icmp6.h
in6.c lltable: fix crash introduced in c541bd368f. 2021-09-07 21:02:58 +00:00
in6.h Expose nonstandard IPv6 kernel definitions to standalone builds. 2020-12-04 21:51:47 +00:00
in6_cksum.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
in6_fib.c MFC 91f2c69ec2: Fix unused-function waring when compiling with FIB_ALGO. 2021-02-04 22:33:53 +00:00
in6_fib.h Add modular fib lookup framework. 2020-12-25 11:33:17 +00:00
in6_fib_algo.c Fix dpdk/ldradix fib lookup algorithm preference calculation. 2021-03-10 21:50:19 +00:00
in6_gif.c net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros 2021-05-10 16:30:44 +02:00
in6_ifattach.c in6: Enter the net epoch in in6_tmpaddrtimer() 2021-08-16 09:01:39 -04:00
in6_ifattach.h
in6_jail.c
in6_mcast.c Fix panic in IPv6 multicast code. 2021-08-13 10:31:11 +03:00
in6_pcb.c net: Allow binding of unspecified address without address existance 2021-11-18 19:28:56 -05:00
in6_pcb.h Filter TCP connections to SO_REUSEPORT_LB listen sockets by NUMA domain 2020-12-19 22:04:46 +00:00
in6_pcbgroup.c
in6_proto.c Remove unused nhop_ref_any() function. 2020-09-20 21:32:52 +00:00
in6_rmx.c Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
in6_rss.c Implement flowid calculation for outbound connections to balance 2020-10-18 17:15:47 +00:00
in6_rss.h Implement flowid calculation for outbound connections to balance 2020-10-18 17:15:47 +00:00
in6_src.c Enforce net epoch in in6_selectsrc(). 2021-03-10 21:57:59 +00:00
in6_var.h Remove per-packet ifa refcounting from IPv6 fast path. 2021-03-10 21:45:55 +00:00
ip6.h
ip6_ecn.h
ip6_fastfwd.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip6_forward.c
ip6_gre.c
ip6_id.c
ip6_input.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00
ip6_mroute.c ip6mrouter: Make the expiration callout MPSAFE 2021-09-21 09:37:32 -04:00
ip6_mroute.h
ip6_output.c net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros 2021-05-10 16:30:44 +02:00
ip6_var.h
ip6protosw.h
ip_fw_nat64.h
ip_fw_nptv6.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
mld6.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
mld6.h
mld6_var.h
nd6.c lltable: Add support for "child" LLEs holding encap for IPv4oIPv6 entries. 2021-09-07 21:02:58 +00:00
nd6.h lltable: Add support for "child" LLEs holding encap for IPv4oIPv6 entries. 2021-09-07 21:02:58 +00:00
nd6_nbr.c nd6: Make the DAD callout MPSAFE 2021-09-21 09:37:52 -04:00
nd6_rtr.c lltable: fix crash introduced in c541bd368f. 2021-09-07 21:02:58 +00:00
pim6.h
pim6_var.h
raw_ip6.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00
raw_ip6.h
route6.c
scope6.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
scope6_var.h
sctp6_usrreq.c sctp: Fix errno in case of association setup failures 2021-07-13 20:30:57 +02:00
sctp6_var.h
send.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00
send.h
tcp6_var.h mend 2021-06-07 11:01:28 +02:00
udp6_usrreq.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00
udp6_var.h