]> git.ipfire.org Git - thirdparty/systemd.git/commit
dhcp-client-send: introduce dhcp_client_send_message()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Mar 2026 16:01:50 +0000 (01:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 15 May 2026 23:03:15 +0000 (08:03 +0900)
commitf39c071f31bbdcba0baaebb967d86311534cb953
tree47d1335905e5975ff25e67c86c2e6eb81ae54218
parent206f0391a6cb529ac4dda86357ef6a03e8c7540f
dhcp-client-send: introduce dhcp_client_send_message()

This internally uses sd_dhcp_message object, and replaces functions
for creating and sending DHCP messages.

By using sd_dhcp_message internally, now we can correctly send long
(> 255 bytes) option data that cannot be fit in a single DHCP option TLV.

This also fixes the value in DHCP option 57 (Maximum Message Size).
Previously the IP and UDP header size is subtracted from the interface
MTU, but it should not.

Except for the above, this should not change any effective behaviors.
src/libsystemd-network/dhcp-client-send.c
src/libsystemd-network/dhcp-client-send.h
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/test-dhcp-client.c