Lines Matching defs:ip_len
514 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4;
515 u_int16_t fr_max = ip_len + off;
564 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl *
568 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) -
570 if (precut >= ip_len)
577 ip_len -= precut;
578 ip->ip_len = htons(ip_len);
581 for (; frea != NULL && ip_len + off > FR_IP_OFF(frea);
585 aftercut = ip_len + off - FR_IP_OFF(frea);
587 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl
589 frea->fr_ip->ip_len =
590 htons(ntohs(frea->fr_ip->ip_len) - aftercut);
627 off += ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 4;
676 ip->ip_len = htons(off + hlen);
690 (uint64_t)VM_KERNEL_ADDRPERM(m), ntohs(ip->ip_len)));
707 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2);
709 u_int16_t fr_max = ip_len + off;
773 if (precut >= ip_len) {
831 ntohs(h->ip_len) - precut);
834 h->ip_len = htons(ntohs(h->ip_len) - precut);
888 ntohs(h->ip_len) - aftercut);
889 h->ip_len = htons(ntohs(h->ip_len) - aftercut);
1545 int ip_len;
1592 if (hlen > ntohs(h->ip_len))
1617 ip_len = ntohs(h->ip_len) - hlen;
1621 if (mff && (ip_len & 0x7)) {
1622 DPFPRINTF(("mff and %d\n", ip_len));
1627 if (fragoff + ip_len > IP_MAXPACKET) {
1628 DPFPRINTF(("max packet %d\n", fragoff + ip_len));
1631 fr_max = fragoff + ip_len;