NetworkManager/src/core/dhcp
Thomas Haller 784932550c
dhcp/nettools: validate and normalize Host Name Option (12)
The hostname is in the end a string, which means it must be in a known,
sensible encoding (UTF-8). Previously, we would not ensure the encoding,
nor that the hostname was valid.

Fix that. Follow what systemd does with lease_parse_domain().

See-also: https://tools.ietf.org/html/rfc2132#section-3.14
2021-02-11 09:23:09 +01:00
..
tests all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
meson.build all: add "nm-glib-aux/nm-default-glib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-dhcp-client-logging.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-client.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-client.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-dhclient-utils.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhclient-utils.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-dhclient.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhcpcanon.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-dhcpcd.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-helper-api.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-helper.c all: add "nm-glib-aux/nm-default-glib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-dhcp-listener.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-listener.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-manager.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-manager.h all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
nm-dhcp-nettools.c dhcp/nettools: validate and normalize Host Name Option (12) 2021-02-11 09:23:09 +01:00
nm-dhcp-options.c dhcp: add nm_dhcp_option_add_option_in_addr() helper 2021-02-11 09:23:07 +01:00
nm-dhcp-options.h dhcp: add nm_dhcp_option_add_option_in_addr() helper 2021-02-11 09:23:07 +01:00
nm-dhcp-systemd.c all: add "src/core/nm-default-daemon.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-dhcp-utils.c dhcp/nettools: validate and normalize Host Name Option (12) 2021-02-11 09:23:09 +01:00
nm-dhcp-utils.h dhcp/nettools: validate and normalize Host Name Option (12) 2021-02-11 09:23:09 +01:00