sd-dhcp6-client: Implement Rapid Commit

System Internals / systemd - Patrik Flykt [linux.intel.com] - 26 June 2014 08:10 UTC

Add a Rapid Commit option to Solicit messages and expect a Reply to be received instead of an Advertise. When receiving a DHCPv6 message from the server in state Solicit, continue testing whether the message is a Reply. Ease up the message type checking, it's not fatal if the message is of a wrong type.

Add helper functions to set/get the rapid commit of a lease. See RFC 3315, sections 17., 17.1.2., 17.1.4. and 18.1.8.

ed6ee21 sd-dhcp6-client: Implement Rapid Commit
src/libsystemd-network/dhcp6-lease-internal.h | 4 ++++
src/libsystemd-network/dhcp6-option.c | 5 +++--
src/libsystemd-network/sd-dhcp6-client.c | 30 +++++++++++++++++++++----
src/libsystemd-network/sd-dhcp6-lease.c | 17 ++++++++++++++
4 files changed, 50 insertions(+), 6 deletions(-)

Upstream: github.com


  • Share