diff options
author | Ryujiro Shibuya <ryujiro.shibuya@owmobility.com> | 2019-10-28 00:32:12 +0000 |
---|---|---|
committer | Ryujiro Shibuya <ryujiro.shibuya@owmobility.com> | 2019-10-29 02:21:15 +0000 |
commit | c8be851161739d9f0b1c4bfbda4e991461ff0bc9 (patch) | |
tree | 1ebc0c8999aab6eace46fac71c4d3671c2b15794 /src/vnet/tcp/tcp_input.c | |
parent | 5afea129ed0c85f5313791d1d55fed6cdcc079c7 (diff) |
tcp: correct tcp connection lookup condition
Type: fix
Signed-off-by: Ryujiro Shibuya <ryujiro.shibuya@owmobility.com>
Change-Id: Ibdbac568d5f765e6b5c959cab5e32dc33335064d
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rwxr-xr-x | src/vnet/tcp/tcp_input.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 744c5bc01c2..83769465525 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2718,14 +2718,17 @@ tcp46_rcv_process_inline (vlib_main_t * vm, vlib_node_runtime_t * node, if (CLIB_DEBUG) { - tcp_connection_t *tmp; - tmp = tcp_lookup_connection (tc0->c_fib_index, b0, thread_index, - is_ip4); - if (tmp->state != tc0->state) + if (!(tc0->connection.flags & TRANSPORT_CONNECTION_F_NO_LOOKUP)) { - if (tc0->state != TCP_STATE_CLOSED) - clib_warning ("state changed"); - goto drop; + tcp_connection_t *tmp; + tmp = tcp_lookup_connection (tc0->c_fib_index, b0, thread_index, + is_ip4); + if (tmp->state != tc0->state) + { + if (tc0->state != TCP_STATE_CLOSED) + clib_warning ("state changed"); + goto drop; + } } } |