Home
last modified time | relevance | path

Searched refs:dhcp_option_parse (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/libsystemd-network/
Dtest-dhcp-option.c79 assert_se(dhcp_option_parse(&message, 0, NULL, NULL, NULL) == -EINVAL); in test_invalid_buffer_length()
80 … assert_se(dhcp_option_parse(&message, sizeof(DHCPMessage) - 1, NULL, NULL, NULL) == -EINVAL); in test_invalid_buffer_length()
105 assert_se(dhcp_option_parse(message, len, NULL, NULL, NULL) >= 0); in test_message_init()
262 … assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, NULL, NULL)) == -ENOMSG); in test_options()
264 … assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, desc, NULL)) >= 0); in test_options()
267 … assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, desc, NULL)) < 0); in test_options()
276 … assert_se(dhcp_option_parse(message, sizeof(DHCPMessage) + desc->len, NULL, NULL, NULL) >= 0); in test_option_removal()
278 … assert_se(dhcp_option_parse(message, sizeof(DHCPMessage) + desc->len, NULL, NULL, NULL) < 0); in test_option_removal()
Dtest-dhcp-client.c261 res = dhcp_option_parse(dhcp, size, check_options, NULL, NULL); in test_discover_message_verify()
432 res = dhcp_option_parse(request, size, check_options, NULL, NULL); in test_addr_acq_recv_request()
462 res = dhcp_option_parse(discover, size, check_options, NULL, NULL); in test_addr_acq_recv_discover()
Ddhcp-internal.h53 int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, …
Ddhcp-option.c361 int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, … in dhcp_option_parse() function
Dsd-dhcp-client.c1525 r = dhcp_option_parse(offer, len, dhcp_lease_parse_options, lease, NULL); in client_handle_offer()
1568 r = dhcp_option_parse(force, len, NULL, NULL, NULL); in client_handle_forcerenew()
1619 r = dhcp_option_parse(ack, len, dhcp_lease_parse_options, lease, &error_message); in client_handle_ack()
Dsd-dhcp-server.c927 … int message_type = dhcp_option_parse(message, sizeof(DHCPMessage) + opt_length, NULL, NULL, NULL); in dhcp_server_relay_message()
1084 type = dhcp_option_parse(message, length, parse_request, req, &error_message); in dhcp_server_handle_message()