.ether_addr_octet = {'A', 'B', 'C', '1', '2', '3'}
};
+static bool verbose = false;
static int test_fd[2];
static void test_request_basic(sd_event *e)
sd_dhcp_client *client;
+ if (verbose)
+ printf("* %s\n", __FUNCTION__);
+
r = sd_dhcp_client_new(&client);
assert(r >= 0);
0xff, 0xff, 0xff, 0xff
};
+ if (verbose)
+ printf("* %s\n", __FUNCTION__);
+
assert(client_checksum(&buf, 20) == be16toh(0x78ae));
}
return test_fd[0];
}
-int dhcp_network_bind_udp_socket(int index, be32_t client_address)
+int dhcp_network_bind_udp_socket(int index, be32_t address, uint16_t port)
{
return 0;
}
-int dhcp_network_send_udp_socket(int s, be32_t server_address,
+int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port,
const void *packet, size_t len)
{
return 0;
sd_dhcp_client *client;
int res, r;
+ if (verbose)
+ printf("* %s\n", __FUNCTION__);
+
r = sd_dhcp_client_new(&client);
assert(r >= 0);
assert(client);