Searched refs:option_len (Results 1 – 9 of 9) sorted by relevance
/external/tcpdump/ |
D | print-ip.c | 234 register u_int option_len; in ip_optprint() local 237 for (; length > 0; cp += option_len, length -= option_len) { in ip_optprint() 251 option_len = 1; in ip_optprint() 255 option_len = cp[1]; in ip_optprint() 256 if (option_len < 2) { in ip_optprint() 257 ND_PRINT((ndo, " [bad length %u]", option_len)); in ip_optprint() 262 if (option_len > length) { in ip_optprint() 263 ND_PRINT((ndo, " [bad length %u]", option_len)); in ip_optprint() 267 ND_TCHECK2(*cp, option_len); in ip_optprint() 274 ip_printts(ndo, cp, option_len); in ip_optprint() [all …]
|
D | print-ahcp.c | 274 uint8_t option_no, option_len; in ahcp1_options_print() local 288 option_len = *cp; in ahcp1_options_print() 290 if (cp + option_len > ep) in ahcp1_options_print() 294 if (data_decoders[option_no](ndo, cp, cp + option_len) < 0) in ahcp1_options_print() 297 ND_PRINT((ndo, " (Length %u)", option_len)); in ahcp1_options_print() 298 ND_TCHECK2(*cp, option_len); in ahcp1_options_print() 300 cp += option_len; in ahcp1_options_print()
|
/external/valgrind/auxprogs/ |
D | getoff.c | 67 int option_len = strlen(option); in is_opt() local 68 if (option[option_len-1] == '=') in is_opt() 69 return (0 == strncmp(option, arg, option_len)); in is_opt()
|
/external/dnsmasq/src/ |
D | rfc2131.c | 81 #define option_len(opt) ((int)(((unsigned char *)(opt))[1])) macro 205 unsigned int total = option_len(opt) + 2; in dhcp_reply() 215 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SUBNET_SELEC… in dhcp_reply() 219 …if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), SUBOPT_SERVER_OR, I… in dhcp_reply() 236 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), search, 1)) && in dhcp_reply() 237 vendor->len == option_len(sopt) && in dhcp_reply() 254 clid_len = option_len(opt); in dhcp_reply() 502 int len = option_len(opt); in dhcp_reply() 544 int len = option_len(opt); in dhcp_reply() 610 o->len > option_len(opt)) in dhcp_reply() [all …]
|
/external/dnsmasq/contrib/wrt/ |
D | dhcp_lease_time.c | 53 #define option_len(opt) ((int)(((unsigned char *)(opt))[1])) macro 84 opt_len = option_len(p); in option_find1()
|
/external/valgrind/coregrind/ |
D | vgdb.c | 1323 int option_len = strlen(option); in is_opt() local 1324 if (option[option_len-1] == '=') in is_opt() 1325 return (0 == strncmp(option, arg, option_len)); in is_opt()
|
/external/toybox/toys/pending/ |
D | dhcp6.c | 174 static void fill_option(uint16_t option_id, uint16_t option_len, uint8_t **dhmesg) in fill_option() argument 179 *(uint16_t*)(tmp+2) = htons(option_len); in fill_option()
|
/external/dhcpcd-6.8.2/ |
D | dhcp.c | 1136 uint8_t option_len; in read_lease() local 1173 option_len = *options_startp++; in read_lease() 1174 options_startp += option_len; in read_lease() 1951 uint8_t option_len; in iterate_next_option() local 1985 option_len = *iterator->ptr++; in iterate_next_option() 1986 if (iterator->ptr + option_len > iterator->end) in iterate_next_option() 1989 if (option_code == DHO_OPTIONSOVERLOADED && option_len > 0 && in iterate_next_option() 1998 *length = option_len; in iterate_next_option() 2002 iterator->ptr += option_len; in iterate_next_option()
|
/external/dnsmasq/contrib/lease-access/ |
D | lease.access.patch | 490 memcpy(req_options, option_ptr(opt, 0), option_len(opt)); 491 req_options[option_len(opt)] = OPTION_END;
|