]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6-client: Implement Rapid Commit
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 25 Jun 2014 13:54:30 +0000 (16:54 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 26 Jun 2014 13:10:47 +0000 (16:10 +0300)
commited6ee21953dac9c78383da00bc4514ece6b75ab5
tree9c2b6215d998e2ec5ab039182884b1530baae77e
parent3dc34fcc97b41f8b7b019027225b121dfbb9871d
sd-dhcp6-client: Implement Rapid Commit

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.
src/libsystemd-network/dhcp6-lease-internal.h
src/libsystemd-network/dhcp6-option.c
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/sd-dhcp6-lease.c