Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 74c99b5 in mainline


Ignore:
Timestamp:
2011-12-09T18:59:16Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
cd79391
Parents:
03be171
Message:

Segments in retransmission queue need to have SEQ set.

Location:
uspace/srv/net/tl/tcp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/tqueue.c

    r03be171 r74c99b5  
    123123                tqe->conn = conn;
    124124                tqe->seg = rt_seg;
     125                rt_seg->seq = conn->snd_nxt;
     126
    125127                list_append(&tqe->link, &conn->retransmit.list);
    126128
     
    233235
    234236                        if ((tqe->seg->ctrl & CTL_FIN) != 0) {
     237                                log_msg(LVL_DEBUG, "Fin has been acked");
     238                                log_msg(LVL_DEBUG, "SND.UNA=%" PRIu32
     239                                    " SEG.SEQ=%" PRIu32 " SEG.LEN=%" PRIu32,
     240                                    conn->snd_una, tqe->seg->seq, tqe->seg->len);
    235241                                /* Our FIN has been acked */
    236242                                conn->fin_is_acked = true;
  • uspace/srv/net/tl/tcp/ucall.c

    r03be171 r74c99b5  
    260260                tcp_conn_segment_arrived(conn, seg);
    261261        } else {
     262                if (conn == NULL)
     263                        log_msg(LVL_WARN, "No connection found.");
     264                else
     265                        log_msg(LVL_WARN, "Connection is closed.");
    262266                tcp_unexpected_segment(sp, seg);
    263267        }
Note: See TracChangeset for help on using the changeset viewer.