]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-server: refuse invalid hostname in request
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Mar 2024 16:47:17 +0000 (01:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Mar 2024 16:57:17 +0000 (01:57 +0900)
commit5a2f378362f2b16f8d837aec4c44532eed737a03
treeb38ce49ac8624416ae7d929ce0ae73f8632273a9
parentfa3357b9e8d9d7a486902d0b6d4b4015fc10aac0
sd-dhcp-server: refuse invalid hostname in request

Currently, the received hostname is not used for assigning an address to
the host, or options in the subsequent reply message. But, the parsed
hostname is exposed through DBus, and possibly Varlink in the future.
Let's ignore spurious hostname.
src/libsystemd-network/dhcp-option.c
src/libsystemd-network/dhcp-option.h
src/libsystemd-network/sd-dhcp-server.c