Home
last modified time | relevance | path

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

/external/tcpdump/
Dprint-ip.c248 register u_int option_len; in ip_optprint() local
251 for (; length > 0; cp += option_len, length -= option_len) { in ip_optprint()
265 option_len = 1; in ip_optprint()
269 option_len = cp[1]; in ip_optprint()
270 if (option_len < 2) { in ip_optprint()
271 ND_PRINT((ndo, " [bad length %u]", option_len)); in ip_optprint()
276 if (option_len > length) { in ip_optprint()
277 ND_PRINT((ndo, " [bad length %u]", option_len)); in ip_optprint()
281 ND_TCHECK2(*cp, option_len); in ip_optprint()
288 if (ip_printts(ndo, cp, option_len) == -1) in ip_optprint()
[all …]
Dprint-ahcp.c264 uint8_t option_no, option_len; in ahcp1_options_print() local
278 option_len = *cp; in ahcp1_options_print()
280 if (cp + option_len > ep) in ahcp1_options_print()
284 if (data_decoders[option_no](ndo, cp, cp + option_len) < 0) in ahcp1_options_print()
287 ND_PRINT((ndo, " (Length %u)", option_len)); in ahcp1_options_print()
288 ND_TCHECK2(*cp, option_len); in ahcp1_options_print()
290 cp += option_len; in ahcp1_options_print()
/external/dnsmasq/src/
Drfc2131.c81 #define option_len(opt) ((int) (((unsigned char*) (opt))[1])) macro
193 unsigned int total = option_len(opt) + 2; in dhcp_reply()
202 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), in dhcp_reply()
207 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), in dhcp_reply()
224 if ((sopt = option_find1(option_ptr(opt, 0), option_ptr(opt, option_len(opt)), in dhcp_reply()
226 vendor->len == option_len(sopt) && in dhcp_reply()
241 clid_len = option_len(opt); in dhcp_reply()
451 int len = option_len(opt); in dhcp_reply()
485 int len = option_len(opt); in dhcp_reply()
542 if (!(opt = option_find(mess, sz, o->opt, 1)) || o->len > option_len(opt)) continue; in dhcp_reply()
[all …]
/external/toybox/toys/pending/
Ddhcp6.c174 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()