Lines Matching refs:caplen
128 const u_char *p, u_int length, u_int caplen, in ether_print() argument
136 if (caplen < ETHER_HDRLEN || length < ETHER_HDRLEN) { in ether_print()
149 caplen -= ETHER_HDRLEN; in ether_print()
161 if (llc_print(ndo, p, length, caplen, ESRC(ep), EDST(ep), in ether_print()
171 ND_DEFAULTPRINT(p, caplen); in ether_print()
181 if (caplen < 4 || length < 4) { in ether_print()
196 caplen -= 4; in ether_print()
209 if (llc_print(ndo, p, length, caplen, ESRC(ep), EDST(ep), in ether_print()
219 ND_DEFAULTPRINT(p, caplen); in ether_print()
222 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) { in ether_print()
231 ND_DEFAULTPRINT(p, caplen); in ether_print()
246 ether_print(ndo, p, h->len, h->caplen, NULL, NULL); in ether_if_print()
267 if (h->len < 4 || h->caplen < 4) { in netanalyzer_if_print()
269 return (h->caplen); in netanalyzer_if_print()
273 ether_print(ndo, p + 4, h->len - 4, h->caplen - 4, NULL, NULL); in netanalyzer_if_print()
297 if (h->len < 12 || h->caplen < 12) { in netanalyzer_transparent_if_print()
299 return (h->caplen); in netanalyzer_transparent_if_print()
303 ether_print(ndo, p + 12, h->len - 12, h->caplen - 12, NULL, NULL); in netanalyzer_transparent_if_print()
318 u_int length, u_int caplen) in ethertype_print() argument
332 arp_print(ndo, p, length, caplen); in ethertype_print()
336 decnet_print(ndo, p, length, caplen); in ethertype_print()
407 tipc_print(ndo, p, length, caplen); in ethertype_print()