Home
last modified time | relevance | path

Searched refs:option_len (Results 1 – 6 of 6) sorted by relevance

/external/tcpdump/
Dprint-ip.c233 register u_int option_len; in ip_optprint() local
236 for (; length > 0; cp += option_len, length -= option_len) { in ip_optprint()
250 option_len = 1; in ip_optprint()
254 option_len = cp[1]; in ip_optprint()
255 if (option_len < 2) { in ip_optprint()
256 printf(" [bad length %u]", option_len); in ip_optprint()
261 if (option_len > length) { in ip_optprint()
262 printf(" [bad length %u]", option_len); in ip_optprint()
266 TCHECK2(*cp, option_len); in ip_optprint()
273 ip_printts(cp, option_len); in ip_optprint()
[all …]
/external/valgrind/auxprogs/
Dgetoff.c67 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/
Drfc2131.c81 #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/
Ddhcp_lease_time.c53 #define option_len(opt) ((int)(((unsigned char *)(opt))[1])) macro
84 opt_len = option_len(p); in option_find1()
/external/valgrind/coregrind/
Dvgdb.c1323 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/dnsmasq/contrib/lease-access/
Dlease.access.patch490 memcpy(req_options, option_ptr(opt, 0), option_len(opt));
491 req_options[option_len(opt)] = OPTION_END;