Changeset 6df418c4 in mainline for uspace/srv/net/tl/tcp/conn.c


Ignore:
Timestamp:
2011-10-24T04:23:23Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6e88fea
Parents:
f343a16
Message:

Retransmission queue, detect ACK of FIN.

File:
1 edited

Legend:

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

    rf343a16 r6df418c4  
    9999        tcp_iqueue_init(&conn->incoming, conn);
    100100
     101        /* Initialize retransmission queue */
     102        tcp_tqueue_init(&conn->retransmit, conn);
     103
    101104        conn->cstate = st_listen;
     105        conn->fin_is_acked = false;
    102106        conn->ident.local = *lsock;
    103107        if (fsock != NULL)
     
    152156                assert(false);
    153157        }
     158
     159        conn->fin_is_acked = false;
    154160}
    155161
     
    525531                return cp_done;
    526532
    527         /* TODO */
     533        if (conn->fin_is_acked) {
     534                log_msg(LVL_DEBUG, " FIN acked -> Fin-Wait-2");
     535                conn->cstate = st_fin_wait_2;
     536        }
     537
    528538        return cp_continue;
    529539}
Note: See TracChangeset for help on using the changeset viewer.