Lines Matching refs:DHCPMessage
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()
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()
293 _cleanup_free_ DHCPMessage *result = NULL; in test_option_set()
296 result = malloc0(sizeof(DHCPMessage) + 11); in test_option_set()