Lines Matching defs:ip_len
367 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4;
368 u_int16_t frmax = ip_len + off;
416 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl *
421 precut = FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) -
423 if (precut >= ip_len)
430 ip_len -= precut;
431 ip->ip_len = htons(ip_len);
434 for (; frea != NULL && ip_len + off > FR_IP_OFF(frea);
439 aftercut = ip_len + off - FR_IP_OFF(frea);
441 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl
444 frea->fr_ip->ip_len =
445 htons(ntohs(frea->fr_ip->ip_len) - aftercut);
482 off += ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 4;
532 ip->ip_len = htons(off + hlen);
548 DPFPRINTF(("complete: %p(%d)\n", m, ntohs(ip->ip_len)));
565 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2);
567 u_int16_t frmax = ip_len + off;
629 if (precut >= ip_len) {
685 ntohs(h->ip_len) - precut);
688 h->ip_len = htons(ntohs(h->ip_len) - precut);
742 ntohs(h->ip_len) - aftercut);
743 h->ip_len = htons(ntohs(h->ip_len) - aftercut);
868 int ip_len;
904 if (hlen > ntohs(h->ip_len))
928 ip_len = ntohs(h->ip_len) - hlen;
931 if (mff && (ip_len & 0x7)) {
932 DPFPRINTF(("mff and %d\n", ip_len));
937 if (fragoff + ip_len > IP_MAXPACKET) {
938 DPFPRINTF(("max packet %d\n", fragoff + ip_len));
941 frmax = fragoff + ip_len;