NetworkManager/shared/n-dhcp4/src
Thomas Haller 53b74bc614 n-dhcp4/socket: use SO_REUSEADDR on UDP socket
Otherwise, other applications cannot bind to port 0.0.0.0:68 at the same time.
This is for example what dhclient wants to do. So even when running
dhclient on another, unrelated interface, it would fail to bind the UDP
socket and quit.

Note that also systemd-networkd's DHCPv4 client sets this socket option.
Presumably for the same reasons.

Signed-off-by: Thomas Haller <thaller@redhat.com>

https://github.com/nettools/n-dhcp4/pull/12
2019-12-11 09:24:14 +01:00
..
util n-dhcp4: util/link: suppress gcc warning 2019-11-20 10:42:57 +01:00
libndhcp4.sym n-dhcp4/lease: expose the server IP address 2019-11-18 13:34:09 +01:00
meson.build Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-c-connection.c n-dhcp4: log outgoing packets 2019-11-22 10:24:49 +01:00
n-dhcp4-c-lease.c lease: add n_dhcp4_client_lease_get_basetime() 2019-11-20 10:58:51 +01:00
n-dhcp4-c-probe.c n-dhcp4: fix state transitions on timer dispatch 2019-11-20 15:14:35 +01:00
n-dhcp4-client.c n-dhcp4: add logging API 2019-11-22 10:24:49 +01:00
n-dhcp4-incoming.c incoming: don't handle 0xFFFFFFFF timestamps special in n_dhcp4_incoming_query_u32() 2019-11-20 10:58:51 +01:00
n-dhcp4-outgoing.c n-dhcp4: avoid "-Werror=declaration-after-statement" warning with static_assert 2019-08-02 11:48:35 +02:00
n-dhcp4-private.h n-dhcp4: log outgoing packets 2019-11-22 10:24:49 +01:00
n-dhcp4-s-connection.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-s-lease.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-server.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
n-dhcp4-socket.c n-dhcp4/socket: use SO_REUSEADDR on UDP socket 2019-12-11 09:24:14 +01:00
n-dhcp4.h n-dhcp4: add logging API 2019-11-22 10:24:49 +01:00
test-api.c n-dhcp4/lease: expose the server IP address 2019-11-18 13:34:09 +01:00
test-connection.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test-message.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test-run-client.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test-socket.c Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00
test.h Merge commit 'e23b3c9c3ac86b065eef002fa5c4321cc4a87df2' as 'shared/n-dhcp4' 2019-05-25 02:02:04 +02:00