chiark / gitweb /
dhcp: Add test for discover DHCP packet creation
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 9 Dec 2013 21:43:21 +0000 (23:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Dec 2013 16:43:34 +0000 (11:43 -0500)
commit290c7324ca6ed22bcb6f4d644765aefeb47dc9de
tree4eff4bddfe7bda4af7e954047fc000e68da7d748
parente1c244dea0248116a61152b3433981f1b90b2273
dhcp: Add test for discover DHCP packet creation

Set a fake MAC address and emulate raw packet sending. When the buffer
containing the Discover message is received, check selected IP and
UDP headers and compute IP header and UDP message checksums. Also
send the DHCP message for option parsing and expect a successful
outcome.
Makefile.am
src/libsystemd-dhcp/test-dhcp-client.c