Home
last modified time | relevance | path

Searched refs:option_len (Results 1 – 7 of 7) 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/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/chromium_org/third_party/usrsctp/usrsctplib/
Duser_socket.c2168 const void *option_value, socklen_t option_len) argument
2179 if (option_len < (socklen_t)sizeof(int)) {
2195 if (option_len < (socklen_t)sizeof(int)) {
2211 if (option_len < (socklen_t)sizeof(struct linger)) {
2232 errno = sctp_setopt(so, option_name, (void *) option_value, (size_t)option_len, NULL);
2246 const void *option_value, socklen_t option_len) argument
2248 return (usrsctp_setsockopt(so, level, option_name, option_value, option_len));
2258 void *option_value, socklen_t *option_len) argument
2264 if (option_len == NULL) {
2272 if (*option_len < (socklen_t)sizeof(int)) {
[all …]
Dusrsctp.h869 socklen_t option_len);
876 socklen_t *option_len);
/external/valgrind/main/coregrind/
Dvgdb.c1300 int option_len = strlen(option); in is_opt() local
1301 if (option[option_len-1] == '=') in is_opt()
1302 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;