networkd/dhcpserver: Save and expose the client hostname sent when requesting a DHCP...
authorRene Hollander <mail@renehollander.at>
Sat, 27 May 2023 11:33:37 +0000 (13:33 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 May 2023 21:51:45 +0000 (06:51 +0900)
commit930133d5df0674ba7cbf1bf5b838ba99cb27dc73
tree34a2f08158213ea61416b7dd822a9f77ba65107a
parent89e9df12b3850800780693a1c746716c655d77ef
networkd/dhcpserver: Save and expose the client hostname sent when requesting a DHCP lease.

DHCP clients often send their own hostname in option 12. It can be useful
to store it with the lease so it can be shown to a human to easily identify
which lease belongs to which device.

RFC: https://www.rfc-editor.org/rfc/rfc2132#section-3.14
src/libsystemd-network/dhcp-internal.h
src/libsystemd-network/dhcp-option.c
src/libsystemd-network/dhcp-server-internal.h
src/libsystemd-network/sd-dhcp-lease.c
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/test-dhcp-server.c
src/network/networkd-json.c