Lines Matching refs:thlen
244 int thlen, i, iplen, hlen; in send_tcp() local
253 thlen = TCP_OFF(t) << 2; in send_tcp()
254 if (!thlen) in send_tcp()
255 thlen = sizeof(tcphdr_t); in send_tcp()
261 bcopy((char *)ip + hlen, (char *)t2, thlen); in send_tcp()
272 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4, in send_tcp()
273 iplen - thlen - hlen); in send_tcp()
274 thlen += 4; in send_tcp()
276 TCP_OFF_A(t2, thlen >> 2); in send_tcp()
277 ip2->ip_len = htons(thlen); in send_tcp()
278 ip->ip_len = hlen + thlen; in send_tcp()
280 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t)); in send_tcp()
282 bcopy((char *)t2, (char *)ip + hlen, thlen); in send_tcp()
294 int thlen; in send_udp() local
299 thlen = sizeof(udphdr_t); in send_udp()
306 ti->ti_len = htons(thlen); in send_udp()
307 ip->ip_len = (IP_HL(ip) << 2) + thlen; in send_udp()
309 ti->ti_sum = chksum((u_short *)ti, thlen + sizeof(ip_t)); in send_udp()