Lines Matching refs:hlen
162 int (*fr_checkp) __P((ip_t *ip, int hlen, void *ifp, int out, mb_t **mp));
555 int tlen = 0, hlen;
574 hlen = (fin->fin_v == 6) ? sizeof(ip6_t) : sizeof(ip_t);
576 hlen = sizeof(ip_t);
585 if (sizeof(*tcp2) + hlen > MLEN) {
593 m->m_len = sizeof(*tcp2) + hlen;
600 bzero((char *)ip, hlen);
604 tcp2 = (struct tcphdr *)((char *)ip + hlen);
642 tcp2->th_sum = in_cksum(m, hlen + sizeof(*tcp2));
643 ip->ip_len = hlen + sizeof(*tcp2);
654 int hlen;
675 hlen = sizeof(*oip);
686 hlen = sizeof(*ip6);
702 fnew.fin_hlen = hlen;
703 fnew.fin_dp = (char *)ip + hlen;
704 (void) fr_makefrip(hlen, ip, &fnew);
715 int err, hlen, xtra, iclen, ohlen, avail, code;
747 hlen = 0;
774 hlen = sizeof(ip_t);
784 hlen = sizeof(ip6_t);
790 if (hlen + sizeof(*icmp) + max_linkhdr +
800 avail - hlen - sizeof(*icmp) - max_linkhdr);
816 iclen = hlen + sizeof(*icmp);
830 icmp = (struct icmp *)((char *)ip + hlen);
848 ip6->ip6_plen = htons(iclen - hlen);
857 sizeof(*ip6), iclen - hlen);
911 int len, off, error = 0, hlen, code;
960 hlen = fin->fin_hlen;
1050 ip->ip_sum = in_cksum(m, hlen);
1064 len = (ifp->if_mtu - hlen) &~ 7;
1080 for (off = hlen + len; off < ip->ip_len; off += len) {
1094 if (hlen > sizeof (struct ip)) {
1099 mhip->ip_off = ((off - hlen) >> 3) + ip_off;
1122 m_adj(m0, hlen + firstlen - ip->ip_len);
1123 ip->ip_len = htons((u_short)(hlen + firstlen));
1126 ip->ip_sum = in_cksum(m0, hlen);