chiark / gitweb /
sd-dhcp6-client: Add IA Address option parsing
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 19 Jun 2014 12:39:39 +0000 (15:39 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 19 Jun 2014 12:44:44 +0000 (15:44 +0300)
commitc6affce8740bb0cee42eebf6d1d44dd518035e88
treef482951415805a9c4722179cde5b662fe747142e
parent3fb2c57038cf8dad396421989f43697fcf4ac4a4
sd-dhcp6-client: Add IA Address option parsing

Add functionality to parse DHCPv6 Identity Association for
Non-temporary (IA_NA) and Temporary Addresses (IA_TA) options.
Both of them contain one or more IA Address (IAADDR) options
and optinally a status code option. Only the IA_NA option
contains lease lifetimes. See RFC 3315, sections 22.4., 22.5.,
22.6., 22.13. and appendix B. for details. If the lease
timeouts are not set, use the ones recommended for servers in
section 22.4.

Factor out common code in the form of an option header parsing
helper function.
src/libsystemd-network/dhcp6-internal.h
src/libsystemd-network/dhcp6-option.c