Lines Matching refs:hlen
541 u_int hlen; in ip_print() local
563 hlen = IP_HL(ipds->ip) * 4; in ip_print()
564 if (hlen < sizeof (struct ip)) { in ip_print()
565 ND_PRINT((ndo, "bad-hlen %u", hlen)); in ip_print()
573 if (ipds->len < hlen) { in ip_print()
596 ipds->len -= hlen; in ip_print()
639 if ((hlen - sizeof(struct ip)) > 0) { in ip_print()
641 ip_optprint(ndo, (const u_char *)(ipds->ip + 1), hlen - sizeof(struct ip)); in ip_print()
645 if (!ndo->ndo_Kflag && (const u_char *)ipds->ip + hlen <= ndo->ndo_snapend) { in ip_print()
647 vec[0].len = hlen; in ip_print()
664 ipds->cp = (const u_char *)ipds->ip + hlen; in ip_print()