]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
dhcp: move filtering of bogus DNS/NTP addresses out of DHCP client
authorThomas Haller <thaller@redhat.com>
Fri, 14 Dec 2018 15:25:01 +0000 (16:25 +0100)
committerThomas Haller <thaller@redhat.com>
Mon, 18 Feb 2019 12:34:22 +0000 (13:34 +0100)
commit072320eab04d29247d7eb1b1fc32ae10e25c020f
tree3427c60c7b495eedb22b95d33bad673411b944b1
parentf8862395e8f802e4106a07ceaaf02b6a1faa5a6d
dhcp: move filtering of bogus DNS/NTP addresses out of DHCP client

The DHCP client should not pre-filter addresses beyond what RFC
requires. If a client's user (like networkd) wishes to skip/filter
certain addresses, it's their responsibility.

The point of this is that the DHCP library does not hide/abstract
information that might be relevant for certain users. For example,
NetworkManager exposes DHCP options in its API. When doing that, the
options should be close to the actual lease.

This is related to commit d9ec2e632df4905201facf76d6a205edc952116a
(dhcp4: filter bogus DNS/NTP server addresses silently).
src/basic/in-addr-util.c
src/basic/in-addr-util.h
src/libsystemd-network/network-internal.c
src/libsystemd-network/network-internal.h
src/libsystemd-network/sd-dhcp-lease.c
src/network/networkd-link.c
src/network/networkd-manager.c