Lines Matching refs:hlen
167 register u_int hlen; in tcp_print() local
219 hlen = TH_OFF(tp) * 4; in tcp_print()
221 if (hlen < sizeof(*tp)) { in tcp_print()
223 length - hlen, hlen, (unsigned long)sizeof(*tp))); in tcp_print()
233 ND_PRINT((ndo, "tcp %d", length - hlen)); in tcp_print()
234 if (hlen > length) { in tcp_print()
236 hlen, length)); in tcp_print()
362 if (hlen > length) { in tcp_print()
364 hlen, length)); in tcp_print()
400 length -= hlen; in tcp_print()
420 if (hlen > sizeof(*tp)) { in tcp_print()
425 hlen -= sizeof(*tp); in tcp_print()
428 while (hlen > 0) { in tcp_print()
438 if (len < 2 || len > hlen) in tcp_print()
440 --hlen; /* account for length byte */ in tcp_print()
442 --hlen; /* account for type byte */ in tcp_print()
446 #define LENCHECK(l) { if ((l) > hlen) goto bad; ND_TCHECK2(*cp, l); } in tcp_print()
641 hlen -= datalen; in tcp_print()