Lines Matching refs:thlen
243 int thlen, i, iplen, hlen; in send_tcp() local
252 thlen = TCP_OFF(t) << 2; in send_tcp()
253 if (!thlen) in send_tcp()
254 thlen = sizeof(tcphdr_t); in send_tcp()
260 bcopy((char *)ip + hlen, (char *)t2, thlen); in send_tcp()
271 bcopy((char *)ip + hlen + thlen, (char *)ip + hlen + thlen + 4, in send_tcp()
272 iplen - thlen - hlen); in send_tcp()
273 thlen += 4; in send_tcp()
275 TCP_OFF_A(t2, thlen >> 2); in send_tcp()
276 ip2->ip_len = htons(thlen); in send_tcp()
277 ip->ip_len = hlen + thlen; in send_tcp()
279 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t)); in send_tcp()
281 bcopy((char *)t2, (char *)ip + hlen, thlen); in send_tcp()
293 int thlen; in send_udp() local
298 thlen = sizeof(udphdr_t); in send_udp()
305 ti->ti_len = htons(thlen); in send_udp()
306 ip->ip_len = (IP_HL(ip) << 2) + thlen; in send_udp()
308 ti->ti_sum = chksum((u_short *)ti, thlen + sizeof(ip_t)); in send_udp()