• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet/

Lines Matching defs:tlen

534 	int len, tlen, off;
600 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
601 if (in6_cksum(m, IPPROTO_TCP, off0, tlen)) {
645 tlen = ip->ip_len;
660 ipov->ih_len = (u_short)tlen;
687 len = sizeof (struct ip) + tlen;
689 ipov->ih_len = (u_short)tlen;
715 if (off < sizeof (struct tcphdr) || off > tlen) {
719 tlen -= off; /* tlen is used instead of ti->ti_len */
1295 if (tp->t_state == TCPS_ESTABLISHED && tlen > 0) {
1298 tp->rcv_byps += tlen + off;
1328 tp->rcv_byps = tlen + off;
1354 + This isn't a pure ack (tlen > 0)
1361 (TE_SETUPSENT | TE_SETUPRECEIVED) && tlen > 0 &&
1455 if (tlen == 0) {
1557 tlen <= tcp_sbspace(tp)) {
1567 tp->rcv_nxt += tlen;
1579 tcpstat.tcps_rcvbyte += tlen;
1868 if (DELAY_ACK(tp) && tlen != 0) {
1917 if (tlen > tp->rcv_wnd) {
1918 todrop = tlen - tp->rcv_wnd;
1920 tlen = tp->rcv_wnd;
2096 tcpstat.tcps_rcvdupbyte += tlen;
2098 if (tlen)
2130 if (todrop > tlen
2131 || (todrop == tlen && (thflags & TH_FIN) == 0)) {
2145 todrop = tlen;
2154 tlen -= todrop;
2168 tp->t_state > TCPS_CLOSE_WAIT && tlen) {
2179 todrop = (th->th_seq+tlen) - (tp->rcv_nxt+tp->rcv_wnd);
2182 if (todrop >= tlen) {
2183 tcpstat.tcps_rcvbyteafterwin += tlen;
2214 tlen -= todrop;
2238 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
2307 if (tlen == 0 && (thflags & TH_FIN) == 0)
2308 (void) tcp_reass(tp, (struct tcphdr *)0, &tlen,
2342 if (tlen == 0 && tiwin == tp->snd_wnd) {
2779 if (tlen == 0 &&
2837 if (th->th_urp <= (u_long)tlen
2862 if ((tlen || (thflags & TH_FIN)) &&
2865 tcp_seq save_end = th->th_seq + tlen;
2890 tp->rcv_nxt += tlen;
2893 tcpstat.tcps_rcvbyte += tlen;
2898 thflags = tcp_reass(tp, th, &tlen, m);
2903 if (tlen > 0 && tp->sack_enable)
3110 tlen++;
3112 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq+tlen,