Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:caplen

130  * FIXME: caplen can and should be derived from ndo->ndo_snapend and p.
134 const u_char *p, u_int length, u_int caplen,
144 if (caplen < ETHER_HDRLEN) {
146 return (caplen);
161 caplen -= ETHER_HDRLEN;
178 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
182 ND_DEFAULTPRINT(p, caplen);
194 if (caplen < 4) {
196 return (hdrlen + caplen);
213 caplen -= 4;
227 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
231 ND_DEFAULTPRINT(p, caplen);
236 if (ethertype_print(ndo, length_type, p, length, caplen, &src, &dst) == 0) {
245 ND_DEFAULTPRINT(p, caplen);
254 * of the packet off the wire, and 'h->caplen' is the number
261 return (ether_print(ndo, p, h->len, h->caplen, NULL, NULL));
267 * of the packet off the wire, and 'h->caplen' is the number
280 if (h->len < 4 || h->caplen < 4) {
282 return (h->caplen);
286 return (4 + ether_print(ndo, p + 4, h->len - 4, h->caplen - 4, NULL, NULL));
292 * of the packet off the wire, and 'h->caplen' is the number
308 if (h->len < 12 || h->caplen < 12) {
310 return (h->caplen);
314 return (12 + ether_print(ndo, p + 12, h->len - 12, h->caplen - 12, NULL, NULL));
327 u_int length, u_int caplen,
342 arp_print(ndo, p, length, caplen);
346 decnet_print(ndo, p, length, caplen);
365 if (length == 0 || caplen == 0) {
421 tipc_print(ndo, p, length, caplen);
442 medsa_print(ndo, p, length, caplen, src, dst);