From 290c7324ca6ed22bcb6f4d644765aefeb47dc9de Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Mon, 9 Dec 2013 23:43:21 +0200 Subject: 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 7c155141be..5828ae19a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3880,6 +3880,8 @@ test_dhcp_client_SOURCES = \ src/libsystemd-dhcp/dhcp-protocol.h \ src/systemd/sd-dhcp-client.h \ src/libsystemd-dhcp/dhcp-client.c \ + src/libsystemd-dhcp/dhcp-internal.h \ + src/libsystemd-dhcp/dhcp-option.c \ src/libsystemd-dhcp/test-dhcp-client.c test_dhcp_client_LDADD = \ -- cgit v1.2.3-54-g00ecf