James Knott wrote:
On 03/14/2018 12:27 PM, Per Jessen wrote:
That is nonetheless how you code it to listen on _any_ address (INADDR_ANY). That is also how it is displayed when you look at open sockets with 'netstat' or 'ss'. When I write '0.0.0.0', I usually also imply '::', although that isn't quite correct.
Does the DHCP server actually listen on any address?
According to netstat, it listens on 0.0.0.0: # netstat -lun Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State [snip irrelevant bits] udp 0 0 0.0.0.0:67 0.0.0.0:* udp 0 0 0.0.0.0:69 0.0.0.0:* udp 0 0 :::69 :::*
Or only it's own and broadcast addresses? The 0.0.0.0 or :: in IPv6 means unknown, while waiting for an address to be assigned.
I would have to check/google it, but I have always taken '::' to mean "any ipv6 address".
A DHCP client will do the discovery and initial request to the broadcast address and then to the server's address. At what point does it ever use any other? Why would the server listen on any other?
Maybe there is other ancient stuff "out there" that it supports? -- Per Jessen, Zürich (9.8°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org