Lines Matching defs:tlen
301 static inline void update_iaj_state(struct tcpcb *tp, uint32_t tlen, int reset_size);
310 struct tcpopt *to, u_int32_t tlen);
1091 int len, tlen, off;
1162 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
1176 if (in6_cksum(m, IPPROTO_TCP, off0, tlen)) {
1194 if (in6_cksum(m, IPPROTO_TCP, off0, tlen)) {
1255 tlen = ip->ip_len;
1267 ipov->ih_len = (u_short)tlen;
1291 ipov->ih_len = (u_short)tlen;
1295 len = sizeof (struct ip) + tlen;
1306 if (lrodebug) printf("tcp_input: bad xsum len = %d, tlen = %d, flags = %x, csum_flags = %x.\n",len, tlen, m->m_flags, m->m_pkthdr.csum_flags);
1330 if (off < sizeof (struct tcphdr) || off > tlen) {
1338 tlen -= off; /* tlen is used instead of ti->ti_len */
2002 if (tp->t_state == TCPS_ESTABLISHED && tlen > 0) {
2005 tp->rcv_byps += tlen + off;
2035 tp->rcv_byps = tlen + off;
2054 tp->rcv_by_unackwin += (tlen + off);
2057 tp->rcv_by_unackwin = tlen + off;
2065 tp->t_lropktlen += tlen;
2072 + This isn't a pure ack (tlen > 0)
2078 ((tp->ecn_flags & (TE_ECN_ON)) == (TE_ECN_ON)) && tlen > 0 &&
2166 int seg_size = tlen;
2254 if (tlen == 0) {
2364 tlen <= tcp_sbspace(tp)) {
2391 tcp_start_coalescing(ip, th, tlen);
2399 tp->rcv_nxt += tlen;
2411 tcpstat.tcps_rcvbyte += tlen;
2419 locked_add_64(&inp->inp_stat->rxbytes, tlen);
2423 tcp_sbrcv_grow(tp, &so->so_rcv, &to, tlen);
2686 if (DELAY_ACK(tp, th) && tlen != 0 ) {
2742 if (tlen > tp->rcv_wnd) {
2743 todrop = tlen - tp->rcv_wnd;
2745 tlen = tp->rcv_wnd;
2926 tcpstat.tcps_rcvdupbyte += tlen;
2929 nstat_route_rx(tp->t_inpcb->inp_route.ro_rt, 1, tlen, NSTAT_RX_FLAG_DUPLICATE);
2931 locked_add_64(&inp->inp_stat->rxbytes, tlen);
2932 tp->t_stat.rxduplicatebytes += tlen;
2934 if (tlen)
2970 if (todrop > tlen
2971 || (todrop == tlen && (thflags & TH_FIN) == 0)) {
2989 todrop = tlen;
3004 tlen -= todrop;
3018 tp->t_state > TCPS_CLOSE_WAIT && tlen) {
3033 todrop = (th->th_seq+tlen) - (tp->rcv_nxt+tp->rcv_wnd);
3036 if (todrop >= tlen) {
3037 tcpstat.tcps_rcvbyteafterwin += tlen;
3067 tlen -= todrop;
3091 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
3173 if (tlen == 0 && (thflags & TH_FIN) == 0)
3174 (void) tcp_reass(tp, (struct tcphdr *)0, &tlen,
3205 if (tlen == 0 && tiwin == tp->snd_wnd) {
3607 if (tlen == 0 &&
3665 if (th->th_urp <= (u_int32_t)tlen
3709 if ((tlen || (thflags & TH_FIN)) &&
3712 tcp_seq save_end = th->th_seq + tlen;
3740 tp->rcv_nxt += tlen;
3743 tcpstat.tcps_rcvbyte += tlen;
3750 locked_add_64(&inp->inp_stat->rxbytes, tlen);
3754 tcp_sbrcv_grow(tp, &so->so_rcv, &to, tlen);
3759 thflags = tcp_reass(tp, th, &tlen, m);
3763 if (tlen > 0 && tp->sack_enable)
3972 tlen++;
3974 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq+tlen,