Lines Matching refs:optlen
85 size_t optlen = 4, optoffset; in test_message_init() local
86 size_t len = sizeof(DHCPMessage) + optlen; in test_message_init()
93 optlen, &optoffset) >= 0); in test_message_init()
108 static DHCPMessage *create_message(uint8_t *options, uint16_t optlen, in create_message() argument
112 size_t len = sizeof(DHCPMessage) + optlen; in create_message()
117 memcpy_safe(&message->options, options, optlen); in create_message()
149 uint8_t optlen = 0; in test_options_cb() local
193 optlen = descoption[*descpos + 1]; in test_options_cb()
197 len, optlen); in test_options_cb()
200 assert_se(len == optlen); in test_options_cb()
214 *descpos += optlen + 2; in test_options_cb()
234 int optlen = 0; in test_options() local
253 optlen = desc->len; in test_options()
256 message = create_message(options, optlen, file, filelen, in test_options()
259 buflen = sizeof(DHCPMessage) + optlen; in test_options()