diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-11-16 04:41:31 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-19 09:15:48 +0000 |
commit | 6c01dceea5c612373453db7f1ccda589a2cd782e (patch) | |
tree | 9e105928cf0ede85eef9c87920a1bc8e65e83502 /src/plugins/nat/nat_inlines.h | |
parent | d30bf015ad3f7fbf206f143ed5d47a9af25148e8 (diff) |
NAT44: fix bug in TCP close with output-feature interface (VPP-1493)
Change-Id: If8c883d6b1ee58de9a03012d3567ec82211a0225
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_inlines.h')
-rw-r--r-- | src/plugins/nat/nat_inlines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/nat/nat_inlines.h b/src/plugins/nat/nat_inlines.h index c0f16721173..0b4f8108c7e 100644 --- a/src/plugins/nat/nat_inlines.h +++ b/src/plugins/nat/nat_inlines.h @@ -215,7 +215,8 @@ nat44_set_tcp_session_state_i2o (snat_main_t * sm, snat_session_t * ses, if (clib_net_to_host_u32 (tcp->ack_number) > ses->o2i_fin_seq) ses->state |= NAT44_SES_O2I_FIN_ACK; } - if (nat44_is_ses_closed (ses)) + if (nat44_is_ses_closed (ses) + && !(ses->flags & SNAT_SESSION_FLAG_OUTPUT_FEATURE)) { nat_log_debug ("TCP close connection %U", format_snat_session, &sm->per_thread_data[thread_index], ses); |