Lines Matching refs:len
145 uint8_t code, len;
163 len = options[offset ++];
165 if (buflen < offset + len)
172 if (len != 1)
181 if (len == 0)
188 if (memchr(option, 0, len - 1))
191 string = strndup((const char *) option, len);
205 if (len != 1)
215 cb(code, len, option, userdata);
220 offset += len;
229 int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_cb_t cb, void *userdata, char **_error_message) {
238 if (len < sizeof(DHCPMessage))
241 len -= sizeof(DHCPMessage);
243 r = parse_options(message->options, len, &overload, &message_type, &error_message, cb, userdata);