Lines Matching refs:caplen
130 const u_char *p, u_int length, u_int caplen,
138 if (caplen < ETHER_HDRLEN || length < ETHER_HDRLEN) {
151 caplen -= ETHER_HDRLEN;
163 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
173 ndo->ndo_default_print(ndo, p, caplen);
183 if (caplen < 4 || length < 4) {
201 caplen -= 4;
214 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
224 ndo->ndo_default_print(ndo, p, caplen);
227 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
236 ndo->ndo_default_print(ndo, p, caplen);
244 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
251 ether_print(ndo, p, h->len, h->caplen, NULL, NULL);
259 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
272 if (h->len < 4 || h->caplen < 4) {
274 return (h->caplen);
278 ether_print(ndo, p + 4, h->len - 4, h->caplen - 4, NULL, NULL);
286 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
302 if (h->len < 12 || h->caplen < 12) {
304 return (h->caplen);
308 ether_print(ndo, p + 12, h->len - 12, h->caplen - 12, NULL, NULL);
323 u_int length, u_int caplen)
339 arp_print(ndo, p, length, caplen);
343 decnet_print(/*ndo,*/p, length, caplen);
413 tipc_print(ndo, p, length, caplen);