diff options
-rw-r--r-- | src/vnet/tcp/tcp.h | 20 | ||||
-rw-r--r-- | src/vnet/tcp/tcp_output.c | 3 |
2 files changed, 0 insertions, 23 deletions
diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index d15a36dc774..d9f49df6d32 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -144,26 +144,6 @@ typedef enum _tcp_connection_flag TCP_CONN_N_FLAGS } tcp_connection_flags_e; -/** TCP buffer flags */ -#define foreach_tcp_buf_flag \ - _ (ACK) /**< Sending ACK. */ \ - _ (DUPACK) /**< Sending DUPACK. */ \ - -enum -{ -#define _(f) TCP_BUF_BIT_##f, - foreach_tcp_buf_flag -#undef _ - TCP_N_BUF_BITS, -}; - -enum -{ -#define _(f) TCP_BUF_FLAG_##f = 1 << TCP_BUF_BIT_##f, - foreach_tcp_buf_flag -#undef _ -}; - #define TCP_SCOREBOARD_TRACE (0) #define TCP_MAX_SACK_BLOCKS 256 /**< Max number of SACK blocks stored */ #define TCP_INVALID_SACK_HOLE_INDEX ((u32)~0) diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 2abc40a8cc7..30549c4e729 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -535,9 +535,6 @@ void tcp_make_fin (tcp_connection_t * tc, vlib_buffer_t * b) { tcp_make_ack_i (tc, b, TCP_STATE_ESTABLISHED, TCP_FLAG_FIN | TCP_FLAG_ACK); - - /* Reset flags, make sure ack is sent */ - vnet_buffer (b)->tcp.flags &= ~TCP_BUF_FLAG_DUPACK; } /** |