chiark / gitweb /
sd-dhcp6-client: Add test case for Advertise message parsing
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 19 Jun 2014 12:39:46 +0000 (15:39 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 19 Jun 2014 12:44:44 +0000 (15:44 +0300)
commit859cca44f834ab1cc3e41fa6b94744f1856ab027
treea60d348c60a14de01f563d60fe6de85c17fdb5ec
parentea3b3a75abb3f8b853f7da454b9b8e258a120eea
sd-dhcp6-client: Add test case for Advertise message parsing

Add a basic test case excersising once more option parsing function
in addition to lease handling. Check that the address iteration
functions return the correct IPv6 address and lifetimes and that
only one address is returned. Also verify that the server ID and
preference values are read correctly.
src/libsystemd-network/test-dhcp6-client.c