NetworkManager/src/systemd
Thomas Haller 41a89aeeba dhcp: cleanup handling of ipv4.dhcp-client-id and avoid assertion failure
The internal client asserts that the length of the client ID is not more
than MAX_CLIENT_ID_LEN. Avoid that assert by truncating the string.

Also add new nm_dhcp_client_set_client_id_*() setters, that either
set the ID based on a string (in our common dhclient specific
format), or based on the binary data (as obtained from systemd client).

Also, add checks and assertions that the client ID which is
set via nm_dhcp_client_set_client_id() is always of length
of at least 2 (as required by rfc2132, section-9.14).

(cherry picked from commit 686afe531a)
2018-01-04 18:53:34 +01:00
..
sd-adapt systemd: avoid coverity warning about Deadcode 2017-10-30 14:14:05 +01:00
src dhcp: cleanup handling of ipv4.dhcp-client-id and avoid assertion failure 2018-01-04 18:53:34 +01:00
nm-sd.c systemd: hide "nm-sd-adapt.h" and expose required internal API in "nm-sd.h" 2016-08-12 09:38:51 +02:00
nm-sd.h build: don't add systemd path the include search path 2016-09-27 14:13:21 +02:00