Lines Matching refs:len

102                 const u_char *cp, uint8_t len)  in ahcp_time_print()  argument
108 if (len != 4) in ahcp_time_print()
121 ND_TCHECK_LEN(cp, len); in ahcp_time_print()
126 const u_char *cp, uint8_t len) in ahcp_seconds_print() argument
128 if (len != 4) in ahcp_seconds_print()
135 ND_TCHECK_LEN(cp, len); in ahcp_seconds_print()
140 const u_char *cp, uint8_t len) in ahcp_ipv6_addresses_print() argument
144 while (len) { in ahcp_ipv6_addresses_print()
145 if (len < 16) in ahcp_ipv6_addresses_print()
149 len -= 16; in ahcp_ipv6_addresses_print()
156 ND_TCHECK_LEN(cp, len); in ahcp_ipv6_addresses_print()
161 const u_char *cp, uint8_t len) in ahcp_ipv4_addresses_print() argument
165 while (len) { in ahcp_ipv4_addresses_print()
166 if (len < 4) in ahcp_ipv4_addresses_print()
170 len -= 4; in ahcp_ipv4_addresses_print()
177 ND_TCHECK_LEN(cp, len); in ahcp_ipv4_addresses_print()
182 const u_char *cp, uint8_t len) in ahcp_ipv6_prefixes_print() argument
186 while (len) { in ahcp_ipv6_prefixes_print()
187 if (len < 17) in ahcp_ipv6_prefixes_print()
191 len -= 17; in ahcp_ipv6_prefixes_print()
198 ND_TCHECK_LEN(cp, len); in ahcp_ipv6_prefixes_print()
203 const u_char *cp, uint8_t len) in ahcp_ipv4_prefixes_print() argument
207 while (len) { in ahcp_ipv4_prefixes_print()
208 if (len < 5) in ahcp_ipv4_prefixes_print()
212 len -= 5; in ahcp_ipv4_prefixes_print()
219 ND_TCHECK_LEN(cp, len); in ahcp_ipv4_prefixes_print()
242 const u_char *cp, uint16_t len) in ahcp1_options_print() argument
244 while (len) { in ahcp1_options_print()
250 len -= 1; in ahcp1_options_print()
255 if (!len) in ahcp1_options_print()
259 len -= 1; in ahcp1_options_print()
260 if (option_len > len) in ahcp1_options_print()
270 len -= option_len; in ahcp1_options_print()
276 ND_TCHECK_LEN(cp, len); in ahcp1_options_print()
281 const u_char *cp, u_int len) in ahcp1_body_print() argument
286 if (len < AHCP1_BODY_MIN_LEN) in ahcp1_body_print()
291 len -= 1; in ahcp1_body_print()
295 len -= 1; in ahcp1_body_print()
299 len -= 2; in ahcp1_body_print()
307 if (body_len > len) in ahcp1_body_print()
320 ND_TCHECK_LEN(cp, len); in ahcp1_body_print()
326 const u_char *cp, u_int len) in ahcp_print() argument
332 if (len < 2) in ahcp_print()
338 len -= 1; in ahcp_print()
342 len -= 1; in ahcp_print()
346 if (len < AHCP1_HEADER_FIX_LEN - 2) in ahcp_print()
351 len -= AHCP1_HEADER_FIX_LEN - 2; in ahcp_print()
356 len -= 1; in ahcp_print()
360 len -= 1; in ahcp_print()
364 len -= 4; in ahcp_print()
368 len -= 8; in ahcp_print()
372 len -= 8; in ahcp_print()
375 ahcp1_body_print(ndo, cp, len); in ahcp_print()
380 ND_TCHECK_LEN(cp, len); in ahcp_print()
387 ND_TCHECK_LEN(cp, len); in ahcp_print()