Lines Matching defs:hlen
166 int i, sent = 0, ts, hlen, olen;
168 hlen = IP_HL(ip) << 2;
169 if (mtu < (hlen + 8)) {
171 mtu, hlen);
206 s = (char *)ip + hlen;
207 iplen = ntohs(ip->ip_len) - hlen;
212 if ((sent + (mtu - hlen)) >= iplen)
218 ts = (mtu - hlen);
221 ts += hlen;
224 ip->ip_sum = chksum((u_short *)ip, hlen);
225 bcopy((char *)ip, ipbuf + sizeof(*eh), hlen);
226 bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen);
230 sent += (ts - hlen);
235 hlen = i + sizeof(*ip);
257 int thlen, i, iplen, hlen;
262 hlen = IP_HL(ip) << 2;
263 t = (tcphdr_t *)((char *)ip + hlen);
265 t2 = (tcphdr_t *)((char *)ip2 + hlen);
274 bcopy((char *)ip + hlen, (char *)t2, thlen);
285 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4,
286 iplen - thlen - hlen);
291 ip->ip_len = hlen + thlen;
295 bcopy((char *)t2, (char *)ip + hlen, thlen);