network: Implement DHCP Option 119 (Domain Search List) (#5932)

This adds a modified version of dhcp6_option_parse_domainname() that is
able to parse compressed domain names, borrowing the idea from
dns_packet_read_name(). It also adds pieces in networkd-link and
networkd-manager to properly save/load the added option field.

Resolves #2710.
This commit is contained in:
Daniel Wang
2017-05-13 10:19:32 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6e4177315f
commit b85bc551c3
9 changed files with 264 additions and 7 deletions
+6
View File
@@ -800,6 +800,12 @@ tests += [
libsystemd_network],
[]],
[['src/libsystemd-network/test-sd-dhcp-lease.c',
'src/libsystemd-network/dhcp-lease-internal.h'],
[libshared,
libsystemd_network],
[]],
[['src/libsystemd-network/test-dhcp-client.c',
'src/libsystemd-network/dhcp-protocol.h',
'src/libsystemd-network/dhcp-internal.h',