/systemd-251/src/libsystemd-network/ |
D | test-dhcp-server.c | 80 DHCPMessage message; in test_message_handler() 130 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 134 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 136 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 141 assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == 0); in test_message_handler() 145 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 148 assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == 0); in test_message_handler() 150 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 153 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() 155 … assert_se(dhcp_server_handle_message(server, (DHCPMessage*)&test, sizeof(test)) == DHCP_OFFER); in test_message_handler() [all …]
|
D | test-dhcp-option.c | 77 DHCPMessage message; in test_invalid_buffer_length() 80 … assert_se(dhcp_option_parse(&message, sizeof(DHCPMessage) - 1, NULL, NULL, NULL) == -EINVAL); in test_invalid_buffer_length() 84 _cleanup_free_ DHCPMessage *message = NULL; in test_message_init() 86 size_t len = sizeof(DHCPMessage) + optlen; in test_message_init() 108 static DHCPMessage *create_message(uint8_t *options, uint16_t optlen, in create_message() 111 DHCPMessage *message; in create_message() 112 size_t len = sizeof(DHCPMessage) + optlen; in create_message() 238 _cleanup_free_ DHCPMessage *message = NULL; in test_options() 259 buflen = sizeof(DHCPMessage) + optlen; in test_options() 274 …_cleanup_free_ DHCPMessage *message = create_message(&desc->options[0], desc->len, NULL, 0, NULL, … in test_option_removal() [all …]
|
D | dhcp-protocol.h | 15 struct DHCPMessage { struct 34 typedef struct DHCPMessage DHCPMessage; argument 39 DHCPMessage dhcp; 46 #define DHCP_MESSAGE_SIZE (int32_t)(sizeof(DHCPMessage))
|
D | fuzz-dhcp-server-relay.c | 25 if (size < sizeof(DHCPMessage)) in LLVMFuzzerTestOneInput() 44 …(void) dhcp_server_relay_message(server, (DHCPMessage *) message, size - sizeof(DHCPMessage), bufl… in LLVMFuzzerTestOneInput()
|
D | dhcp-internal.h | 45 int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, 53 int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, … 55 int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid,
|
D | sd-dhcp-server.c | 370 DHCPMessage *message, size_t len) { in dhcp_server_send_udp() 393 assert(len > sizeof(DHCPMessage)); in dhcp_server_send_udp() 423 static bool requested_broadcast(DHCPMessage *message) { in requested_broadcast() 441 sizeof(DHCPMessage) + optoffset); in dhcp_server_send() 445 sizeof(DHCPMessage) + optoffset); in dhcp_server_send() 732 sizeof(DHCPMessage) + optoffset); in server_send_forcerenew() 794 static int ensure_sane_request(sd_dhcp_server *server, DHCPRequest *req, DHCPMessage *message) { in ensure_sane_request() 870 static int append_agent_information_option(sd_dhcp_server *server, DHCPMessage *message, size_t opt… in append_agent_information_option() 891 static int dhcp_server_relay_message(sd_dhcp_server *server, DHCPMessage *message, size_t opt_lengt… in dhcp_server_relay_message() 914 … r = append_agent_information_option(server, message, opt_length, buflen - sizeof(DHCPMessage)); in dhcp_server_relay_message() [all …]
|
D | dhcp-option.c | 203 int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, in dhcp_option_append() 361 int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_callback_t cb, void *userdata, … in dhcp_option_parse() 370 if (len < sizeof(DHCPMessage)) in dhcp_option_parse() 373 len -= sizeof(DHCPMessage); in dhcp_option_parse()
|
D | dhcp-server-internal.h | 96 DHCPMessage *message; 109 int dhcp_server_handle_message(sd_dhcp_server *server, DHCPMessage *message,
|
D | fuzz-dhcp-server.c | 57 if (size < sizeof(DHCPMessage)) in LLVMFuzzerTestOneInput() 76 (void) dhcp_server_handle_message(server, (DHCPMessage*) duped, size); in LLVMFuzzerTestOneInput()
|
D | test-dhcp-client.c | 28 typedef int (*test_callback_recv_t)(size_t size, DHCPMessage *dhcp); 258 static int test_discover_message_verify(size_t size, struct DHCPMessage *dhcp) { in test_discover_message_verify() 427 static int test_addr_acq_recv_request(size_t size, DHCPMessage *request) { in test_addr_acq_recv_request() 457 static int test_addr_acq_recv_discover(size_t size, DHCPMessage *discover) { in test_addr_acq_recv_discover()
|
D | sd-dhcp-client.c | 957 DHCPMessage *message, in client_append_fqdn_option() 1200 sizeof(DHCPMessage) + optoffset); in client_send_request() 1509 static int client_handle_offer(sd_dhcp_client *client, DHCPMessage *offer, size_t len) { in client_handle_offer() 1565 static int client_handle_forcerenew(sd_dhcp_client *client, DHCPMessage *force, size_t len) { in client_handle_forcerenew() 1602 static int client_handle_ack(sd_dhcp_client *client, DHCPMessage *ack, size_t len) { in client_handle_ack() 1766 static int client_handle_message(sd_dhcp_client *client, DHCPMessage *message, int len) { in client_handle_message() 1898 _cleanup_free_ DHCPMessage *message = NULL; in client_receive_message_udp() 1927 if ((size_t) len < sizeof(DHCPMessage)) { in client_receive_message_udp() 2116 sizeof(DHCPMessage) + optoffset); in sd_dhcp_client_send_release() 2150 sizeof(DHCPMessage) + optoffset); in sd_dhcp_client_send_decline()
|
D | fuzz-dhcp-client.c | 74 (void) client_handle_offer(client, (DHCPMessage*) data, size); in LLVMFuzzerTestOneInput()
|
D | dhcp-packet.c | 18 DHCPMessage *message, in dhcp_message_init()
|