Lines Matching refs:len
100 const u_char *cp, uint8_t len) in ahcp_time_print() argument
105 if (len != 4) in ahcp_time_print()
115 ND_TCHECK_LEN(cp, len); in ahcp_time_print()
120 const u_char *cp, uint8_t len) in ahcp_seconds_print() argument
122 if (len != 4) in ahcp_seconds_print()
129 ND_TCHECK_LEN(cp, len); in ahcp_seconds_print()
134 const u_char *cp, uint8_t len) in ahcp_ipv6_addresses_print() argument
138 while (len) { in ahcp_ipv6_addresses_print()
139 if (len < 16) in ahcp_ipv6_addresses_print()
143 len -= 16; in ahcp_ipv6_addresses_print()
150 ND_TCHECK_LEN(cp, len); in ahcp_ipv6_addresses_print()
155 const u_char *cp, uint8_t len) in ahcp_ipv4_addresses_print() argument
159 while (len) { in ahcp_ipv4_addresses_print()
160 if (len < 4) in ahcp_ipv4_addresses_print()
164 len -= 4; in ahcp_ipv4_addresses_print()
171 ND_TCHECK_LEN(cp, len); in ahcp_ipv4_addresses_print()
176 const u_char *cp, uint8_t len) in ahcp_ipv6_prefixes_print() argument
180 while (len) { in ahcp_ipv6_prefixes_print()
181 if (len < 17) in ahcp_ipv6_prefixes_print()
185 len -= 17; in ahcp_ipv6_prefixes_print()
192 ND_TCHECK_LEN(cp, len); in ahcp_ipv6_prefixes_print()
197 const u_char *cp, uint8_t len) in ahcp_ipv4_prefixes_print() argument
201 while (len) { in ahcp_ipv4_prefixes_print()
202 if (len < 5) in ahcp_ipv4_prefixes_print()
206 len -= 5; in ahcp_ipv4_prefixes_print()
213 ND_TCHECK_LEN(cp, len); in ahcp_ipv4_prefixes_print()
236 const u_char *cp, uint16_t len) in ahcp1_options_print() argument
238 while (len) { in ahcp1_options_print()
244 len -= 1; in ahcp1_options_print()
249 if (!len) in ahcp1_options_print()
253 len -= 1; in ahcp1_options_print()
254 if (option_len > len) in ahcp1_options_print()
264 len -= option_len; in ahcp1_options_print()
270 ND_TCHECK_LEN(cp, len); in ahcp1_options_print()
275 const u_char *cp, u_int len) in ahcp1_body_print() argument
280 if (len < AHCP1_BODY_MIN_LEN) in ahcp1_body_print()
285 len -= 1; in ahcp1_body_print()
289 len -= 1; in ahcp1_body_print()
293 len -= 2; in ahcp1_body_print()
301 if (body_len > len) in ahcp1_body_print()
314 ND_TCHECK_LEN(cp, len); in ahcp1_body_print()
320 const u_char *cp, u_int len) in ahcp_print() argument
326 if (len < 2) in ahcp_print()
332 len -= 1; in ahcp_print()
336 len -= 1; in ahcp_print()
340 if (len < AHCP1_HEADER_FIX_LEN - 2) in ahcp_print()
345 len -= AHCP1_HEADER_FIX_LEN - 2; in ahcp_print()
350 len -= 1; in ahcp_print()
354 len -= 1; in ahcp_print()
358 len -= 4; in ahcp_print()
362 len -= 8; in ahcp_print()
366 len -= 8; in ahcp_print()
369 ahcp1_body_print(ndo, cp, len); in ahcp_print()
374 ND_TCHECK_LEN(cp, len); in ahcp_print()
381 ND_TCHECK_LEN(cp, len); in ahcp_print()