Lines Matching refs:hlen
168 int i, sent = 0, ts, hlen, olen;
170 hlen = IP_HL(ip) << 2;
171 if (mtu < (hlen + 8)) {
173 mtu, hlen);
208 s = (char *)ip + hlen;
209 iplen = ntohs(ip->ip_len) - hlen;
214 if ((sent + (mtu - hlen)) >= iplen)
220 ts = (mtu - hlen);
223 ts += hlen;
226 ip->ip_sum = chksum((u_short *)ip, hlen);
227 bcopy((char *)ip, ipbuf + sizeof(*eh), hlen);
228 bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen);
232 sent += (ts - hlen);
237 hlen = i + sizeof(*ip);
259 int thlen, i, iplen, hlen;
264 hlen = IP_HL(ip) << 2;
265 t = (tcphdr_t *)((char *)ip + hlen);
276 bcopy((char *)ip + hlen, (char *)t2, thlen);
287 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4,
288 iplen - thlen - hlen);
293 ip->ip_len = hlen + thlen;
297 bcopy((char *)t2, (char *)ip + hlen, thlen);