Lines Matching refs:len
18 int len;
83 size_t len = sizeof(DHCPMessage) + optlen;
86 message = malloc0(len);
101 assert_se(dhcp_option_parse(message, len, NULL, NULL, NULL) >= 0);
108 size_t len = sizeof(DHCPMessage) + optlen;
110 message = malloc0(len);
145 static int test_options_cb(uint8_t code, uint8_t len, const void *option, void *userdata) {
153 assert_se((!desc && !code && !len) || desc);
167 desclen = &desc->len;
198 printf("DHCP code %2d(%2d) len %2d(%2d) ", code, optcode,
199 len, optlen);
202 assert_se(len == optlen);
204 for (i = 0; i < len; i++) {
220 if (desc->pos != -1 && desc->pos == desc->len)
255 optlen = desc->len;
288 size_t offset = 0, len, pos;
312 len = 11;
313 while (pos < len && options[pos] != SD_DHCP_OPTION_END) {
314 assert_se(dhcp_option_append(result, len, &offset, DHCP_OVERLOAD_SNAME,
324 if (pos < len)