]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-server: use sd_dhcp_message object on sending reply 42240/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 May 2026 13:17:05 +0000 (22:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 May 2026 00:38:29 +0000 (09:38 +0900)
commit15103b697d926ceef02c2735d1bff065c3932ddd
treeec79ecc53a2d0efea3ca7769d469941d0c8ad35c
parent5e08ff899e88ea60d75f9548ba1cb9012849fad1
sd-dhcp-server: use sd_dhcp_message object on sending reply

This also makes the conditions in dhcp_server_send_message() uses
the message that will be sent, rather than we received.

This does not change basic functionality, but changes/fixes several
minor behaviors, e.g.
- fix when the broadcast flag assignment,
- set server identifier in DHCPFORCERENEW.
src/libsystemd-network/dhcp-server-request.c
src/libsystemd-network/dhcp-server-send.c
src/libsystemd-network/dhcp-server-send.h