Lines Matching defs:caplen
129 const u_char *p, u_int length, u_int caplen,
137 if (caplen < ETHER_HDRLEN || length < ETHER_HDRLEN) {
150 caplen -= ETHER_HDRLEN;
162 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
172 ndo->ndo_default_print(ndo, p, caplen);
182 if (caplen < 4 || length < 4) {
200 caplen -= 4;
213 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
223 ndo->ndo_default_print(ndo, p, caplen);
226 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
235 ndo->ndo_default_print(ndo, p, caplen);
243 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
250 ether_print(ndo, p, h->len, h->caplen, NULL, NULL);
258 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
271 if (h->len < 4 || h->caplen < 4) {
273 return (h->caplen);
277 ether_print(ndo, p + 4, h->len - 4, h->caplen - 4, NULL, NULL);
285 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
301 if (h->len < 12 || h->caplen < 12) {
303 return (h->caplen);
307 ether_print(ndo, p + 12, h->len - 12, h->caplen - 12, NULL, NULL);
322 u_int length, u_int caplen)
338 arp_print(ndo, p, length, caplen);
342 decnet_print(/*ndo,*/p, length, caplen);
412 tipc_print(ndo, p, length, caplen);