dhcp4: make IPServiceType configurable

System Internals / systemd - Siddharth Chandrasekara [vmware.com] - 26 September 2019 02:39 EDT

IPServiceType set to CS6 (network control) causes problems on some old network setups that continue to interpret the field as IP TOS.

Make DHCP work on such networks by allowing this field to be set to CS4 (Realtime) instead, as this maps to IPTOS_LOWDELAY.

afe42aef39 dhcp4: make IPServiceType configurable
man/systemd.network.xml | 9 +++++++-
src/libsystemd-network/dhcp-internal.h | 4 ++--
src/libsystemd-network/dhcp-network.c | 8 +++++--
src/libsystemd-network/dhcp-packet.c | 7 ++++--
src/libsystemd-network/sd-dhcp-client.c | 14 ++++++++++--
src/libsystemd-network/sd-dhcp-server.c | 4 ++--
src/libsystemd-network/test-dhcp-client.c | 2 +-
src/network/networkd-conf.c | 29 ++++++++++++++++++++++++
src/network/networkd-conf.h | 1 +
src/network/networkd-dhcp4.c | 7 +++++-
src/network/networkd-network-gperf.gperf | 1 +
src/network/networkd-network.c | 1 +
src/network/networkd-network.h | 1 +
src/systemd/sd-dhcp-client.h | 3 +++
test/fuzz/fuzz-network-parser/directives.network | 1 +
15 files changed, 79 insertions(+), 13 deletions(-)

Upstream: github.com


  • Share