mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
test-dhcp-server: add usual headers
This commit is contained in:
parent
4f3cb2465a
commit
99e65b7df3
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user