diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-27 07:40:40 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-01 03:56:22 +0100 |
commit | 99e65b7df34d4c664fc1b33101e634081734f34d (patch) | |
tree | 2af7d6419d8ae37bce350a912dfab2fd34aeba49 /src/libsystemd-network/test-dhcp-server.c | |
parent | test-dhcp-server: run a test earlier which does not require privilege (diff) | |
download | systemd-99e65b7df34d4c664fc1b33101e634081734f34d.tar.xz systemd-99e65b7df34d4c664fc1b33101e634081734f34d.zip |
test-dhcp-server: add usual headers
Diffstat (limited to 'src/libsystemd-network/test-dhcp-server.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp-server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-network/test-dhcp-server.c b/src/libsystemd-network/test-dhcp-server.c index 394a8e401d..cc3043a407 100644 --- a/src/libsystemd-network/test-dhcp-server.c +++ b/src/libsystemd-network/test-dhcp-server.c @@ -31,6 +31,8 @@ static int test_basic(bool bind_to_interface) { }; int r; + log_debug("/* %s(bind_to_interface=%s) */", __func__, yes_no(bind_to_interface)); + assert_se(sd_event_new(&event) >= 0); /* attach to loopback interface */ @@ -112,6 +114,8 @@ static void test_message_handler(void) { .s_addr = htobe32(INADDR_LOOPBACK), }; + log_debug("/* %s */", __func__); + assert_se(sd_dhcp_server_new(&server, 1) >= 0); assert_se(sd_dhcp_server_configure_pool(server, &address_lo, 8, 0, 0) >= 0); assert_se(sd_dhcp_server_attach_event(server, NULL, 0) >= 0); @@ -205,6 +209,8 @@ static void test_client_id_hash(void) { '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', }; + log_debug("/* %s */", __func__); + a.data = (uint8_t*)strdup("abcd"); b.data = (uint8_t*)strdup("abcd"); |