Changeset 7cf7ded in mainline for uspace/srv/net/tl/tcp/state.c


Ignore:
Timestamp:
2011-11-15T23:50:57Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4f3f6285
Parents:
8218b6b
Message:

TCP retransmission (WIP). Allow setting timer in timer handler.
Simulate packet drop. Fixes.

File:
1 edited

Legend:

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

    r8218b6b r7cf7ded  
    112112        log_msg(LVL_DEBUG, "tcp_uc_receive()");
    113113
     114        /*
     115         * XXX Handle all states for all user calls properly, return
     116         * errors as appropriate.
     117         */
     118        if (conn->cstate == st_closed)
     119                return;
     120
     121
    114122        fibril_mutex_lock(&conn->rcv_buf_lock);
    115123
     
    186194
    187195        conn = tcp_conn_find(sp);
    188         if (conn != NULL) {
     196        if (conn != NULL && conn->cstate != st_closed) {
    189197                tcp_conn_segment_arrived(conn, seg);
    190198        } else {
Note: See TracChangeset for help on using the changeset viewer.