Ignore:
File:
1 edited

Legend:

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

    r2f0dd2a re1c6dde9  
    491491                    conn->snd_una, seg->ack, conn->snd_nxt);
    492492                if (!seq_no_ack_acceptable(conn, seg->ack)) {
    493                         if ((seg->ctrl & CTL_RST) == 0) {
    494                                 log_msg(LVL_WARN, "ACK not acceptable, send RST");
    495                                 tcp_reply_rst(&conn->ident, seg);
    496                         } else {
    497                                 log_msg(LVL_WARN, "RST,ACK not acceptable, drop");
    498                         }
     493                        log_msg(LVL_WARN, "ACK not acceptable, send RST.");
     494                        tcp_reply_rst(&conn->ident, seg);
    499495                        return;
    500496                }
     
    502498
    503499        if ((seg->ctrl & CTL_RST) != 0) {
    504                 /* If we get here, we have either an acceptable ACK or no ACK */
    505                 if ((seg->ctrl & CTL_ACK) != 0) {
    506                         log_msg(LVL_DEBUG, "%s: Connection reset. -> Closed",
    507                             conn->name);
    508                         /* Reset connection */
    509                         tcp_conn_reset(conn);
    510                         return;
    511                 } else {
    512                         log_msg(LVL_DEBUG, "%s: RST without ACK, drop",
    513                             conn->name);
    514                         return;
    515                 }
     500                log_msg(LVL_DEBUG, "%s: Connection reset. -> Closed",
     501                    conn->name);
     502                /* Reset connection */
     503                tcp_conn_reset(conn);
     504                /* XXX delete connection */
     505                return;
    516506        }
    517507
Note: See TracChangeset for help on using the changeset viewer.