freebsd-nq/sys
Roy Marples 5c5340108e 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
2021-10-20 19:25:51 -04:00
..
amd64 vlapic: Schedule callouts on the local CPU 2021-10-19 21:22:57 -04:00
arm Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
arm64 Pass the ACPI ID when reading the ACPI domain 2021-10-20 11:02:06 +01:00
bsm Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
cam cam(4): Limit search for disks in SES enclosure by single bus 2021-10-05 15:01:16 -04:00
cddl Allow ddb and dtrace use the DMAP region on arm64 2021-10-01 11:27:33 +01:00
compat Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
conf arm: allow the debug stuff in CP14 to be disabled at compile time 2021-10-18 19:18:56 +00:00
contrib vfs: remove thread argument from VOP_STAT 2021-10-11 13:22:32 +00:00
crypto crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-06 14:08:49 -07:00
ddb Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
dev Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
dts ipq4018: add a device tree file for the ASUS rt-ac58u router 2021-10-18 19:18:46 +00:00
fs msdosfs_rename: remove write-only variables 2021-10-20 21:29:49 +03:00
gdb
geom geom_label: Add more validation for NTFS volume tasting 2021-10-04 18:15:06 -04:00
gnu
i386 Use the vm_radix_init() helper when initializing pmaps 2021-10-19 21:22:56 -04:00
isa
kern Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
kgssapi
libkern libkern: remove bcopy 2021-08-24 11:24:07 +00:00
mips Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
modules modules: felix: Remove etherswitch_if.c from Makefile 2021-10-01 11:24:08 +02:00
net Remove in_ifaddr_lock acquisiton to access in_ifaddrhead. 2021-10-13 10:04:46 -07:00
net80211 net80211: fix build for 526370fb85 2021-10-08 11:21:44 +00:00
netgraph ng_ppp(4): Fix a typo in a comment 2021-10-14 15:30:32 +02:00
netinet net: Allow binding of unspecified address without address existance 2021-10-20 19:25:51 -04:00
netinet6 net: Allow binding of unspecified address without address existance 2021-10-20 19:25:51 -04:00
netipsec ipsec: fix typo part2 2021-09-27 07:46:56 +02:00
netpfil pf: fix some cc --analyze warnings 2021-10-19 11:59:11 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed socket: De-duplicate SBLOCKWAIT() definitions 2021-09-14 09:01:32 -04:00
opencrypto stand: fix build after recent opencrypto changes 2021-10-06 20:23:44 -05:00
powerpc Use the vm_radix_init() helper when initializing pmaps 2021-10-19 21:22:56 -04:00
riscv Convert consumers to vm_page_alloc_noobj_contig() 2021-10-19 21:22:56 -04:00
rpc rpc: Convert an SOLISTENING check to an assertion 2021-09-17 14:19:05 -04:00
security Add fspacectl(2), vn_deallocate(9) and VOP_DEALLOCATE(9). 2021-08-05 23:20:42 +08:00
sys sys/bus.h: silence warnings about write-only variables 2021-10-20 21:29:49 +03:00
teken
tests routing: add IPv6 fib validation procedure. 2021-08-16 23:04:01 +00:00
tools ipq4018: add TCSR definitions from Linux. 2021-10-18 19:18:01 +00:00
ufs vfs: remove cn_thread 2021-10-11 13:21:47 +00:00
vm Remove some remaining references to VM_ALLOC_NOOBJ 2021-10-19 21:22:56 -04:00
x86 x86: Remove some leftover APM support 2021-10-18 09:56:59 -04:00
xdr
xen xen: introduce xen_pv_disks_disabled() 2021-07-28 17:27:04 +02:00
Makefile