summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/dhcp-lease-internal.h
diff options
context:
space:
mode:
authorRonan Pigott <ronan@rjp.ie>2023-10-24 20:01:32 +0200
committerRonan Pigott <ronan@rjp.ie>2023-10-27 00:26:50 +0200
commit808b65a08729caa268efd57c478285ee4912d5a3 (patch)
tree19fd7ac7f3fb996e340eb102ab36969b02d8e044 /src/libsystemd-network/dhcp-lease-internal.h
parentnetwork: cleanup unreachable condition in dhcp client path (diff)
downloadsystemd-808b65a08729caa268efd57c478285ee4912d5a3.tar.xz
systemd-808b65a08729caa268efd57c478285ee4912d5a3.zip
network: implement RFC4039 DHCP Rapid Commit
This implements the DHCPv4 equivalent of the DHCPv6 Rapid Commit option, enabling a lease to be selected in an accelerated 2-message exchange instead of the typical 4-message exchange.
Diffstat (limited to 'src/libsystemd-network/dhcp-lease-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-lease-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/dhcp-lease-internal.h b/src/libsystemd-network/dhcp-lease-internal.h
index ce1342e9fd..0b72813733 100644
--- a/src/libsystemd-network/dhcp-lease-internal.h
+++ b/src/libsystemd-network/dhcp-lease-internal.h
@@ -50,6 +50,8 @@ struct sd_dhcp_lease {
struct in_addr *router;
size_t router_size;
+ bool rapid_commit;
+
DHCPServerData servers[_SD_DHCP_LEASE_SERVER_TYPE_MAX];
struct sd_dhcp_route *static_routes;