Changeset 704586fb in mainline for uspace/srv/net/tl/tcp/tqueue.c


Ignore:
Timestamp:
2011-12-01T19:28:49Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3aa2642a
Parents:
26ec91c
Message:

Fix RST to refuse connection and handle it properly in connect().

File:
1 edited

Legend:

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

    r26ec91c r704586fb  
    7171}
    7272
     73void tcp_tqueue_clear(tcp_tqueue_t *tqueue)
     74{
     75        tcp_tqueue_timer_clear(tqueue->conn);
     76}
     77
    7378void tcp_tqueue_fini(tcp_tqueue_t *tqueue)
    7479{
     
    267272void tcp_transmit_segment(tcp_sockpair_t *sp, tcp_segment_t *seg)
    268273{
    269         log_msg(LVL_DEBUG, "tcp_transmit_segment(%p, %p)", sp, seg);
     274        log_msg(LVL_DEBUG, "tcp_transmit_segment(f:(%x,%u),l:(%x,%u), %p)",
     275            sp->foreign.addr.ipv4, sp->foreign.port,
     276            sp->local.addr.ipv4, sp->local.port, seg);
    270277
    271278        log_msg(LVL_DEBUG, "SEG.SEQ=%" PRIu32 ", SEG.WND=%" PRIu32,
     
    299306
    300307        log_msg(LVL_DEBUG, "### %s: retransmit_timeout_func(%p)", conn->name, conn);
     308
     309        if (conn->cstate == st_closed) {
     310                log_msg(LVL_DEBUG, "Connection already closed.");
     311                return;
     312        }
     313
    301314        link = list_first(&conn->retransmit.list);
    302315        if (link == NULL) {
Note: See TracChangeset for help on using the changeset viewer.