summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nat')
-rw-r--r--src/plugins/nat/in2out_ed.c3
-rw-r--r--src/plugins/nat/out2in_ed.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c
index 77630268047..31977acf2a3 100644
--- a/src/plugins/nat/in2out_ed.c
+++ b/src/plugins/nat/in2out_ed.c
@@ -238,9 +238,6 @@ icmp_in2out_ed_slow_path (snat_main_t * sm, vlib_buffer_t * b0,
snat_session_t *s0 = *p_s0;
if (PREDICT_TRUE (next0 != NAT_IN2OUT_ED_NEXT_DROP && s0))
{
- /* Hairpinning */
- if (vnet_buffer (b0)->sw_if_index[VLIB_TX] == ~0)
- snat_icmp_hairpinning (sm, b0, ip0, icmp0, sm->endpoint_dependent);
/* Accounting */
nat44_session_update_counters (s0, now,
vlib_buffer_length_in_chain
diff --git a/src/plugins/nat/out2in_ed.c b/src/plugins/nat/out2in_ed.c
index ef772334292..1a9f8979c42 100644
--- a/src/plugins/nat/out2in_ed.c
+++ b/src/plugins/nat/out2in_ed.c
@@ -137,7 +137,7 @@ nat44_o2i_ed_is_idle_session_cb (clib_bihash_kv_16_8_t * kv, void *arg)
{
ed_key.l_addr = s->in2out.addr;
ed_key.r_addr = s->ext_host_addr;
- ed_key.fib_index = s->out2in.fib_index;
+ ed_key.fib_index = s->in2out.fib_index;
if (snat_is_unk_proto_session (s))
{
ed_key.proto = s->in2out.port;