Lines Matching refs:hlen
150 int i, sent = 0, ts, hlen, olen; in send_ip() local
152 hlen = IP_HL(ip) << 2; in send_ip()
153 if (mtu < (hlen + 8)) { in send_ip()
155 mtu, hlen); in send_ip()
190 s = (char *)ip + hlen; in send_ip()
191 iplen = ntohs(ip->ip_len) - hlen; in send_ip()
196 if ((sent + (mtu - hlen)) >= iplen) in send_ip()
202 ts = (mtu - hlen); in send_ip()
205 ts += hlen; in send_ip()
208 ip->ip_sum = chksum((u_short *)ip, hlen); in send_ip()
209 bcopy((char *)ip, ipbuf + sizeof(*eh), hlen); in send_ip()
210 bcopy(s + sent, ipbuf + sizeof(*eh) + hlen, ts - hlen); in send_ip()
214 sent += (ts - hlen); in send_ip()
219 hlen = i + sizeof(*ip); in send_ip()
239 int thlen, i, iplen, hlen; in send_tcp() local
244 hlen = IP_HL(ip) << 2; in send_tcp()
245 t = (tcphdr_t *)((char *)ip + hlen); in send_tcp()
247 t2 = (tcphdr_t *)((char *)ip2 + hlen); in send_tcp()
256 bcopy((char *)ip + hlen, (char *)t2, thlen); in send_tcp()
267 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4, in send_tcp()
268 iplen - thlen - hlen); in send_tcp()
273 ip->ip_len = hlen + thlen; in send_tcp()
277 bcopy((char *)t2, (char *)ip + hlen, thlen); in send_tcp()