chiark / gitweb /
dhcp-network: allow UDP socket to listen on any address
authorTom Gundersen <teg@jklm.no>
Sat, 24 May 2014 13:48:47 +0000 (15:48 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 13 Jun 2014 14:53:13 +0000 (16:53 +0200)
commitfef0e0f3b2ad24ed825f04fe1fe60742958f3567
tree6fb8c17d586fca4882e672f6acaf8d643db3027e
parent55745f2054a1bc132ee415ddd72441bac52b89b6
dhcp-network: allow UDP socket to listen on any address

For this to work nicely we need to use REUSEADDR so that more than one socket
can be open at the same time. Also, we request the ifindex to be appended
to incoming messages, so we know whence it came.
src/libsystemd-network/dhcp-network.c