diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-06-20 01:45:49 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-06-20 12:00:19 +0000 |
commit | 1e8db5fb6fd4c6cd168b0e6ec2f08b4af1e0093f (patch) | |
tree | 7d97da987b766c4c4830a7bde2bbd4151dd96f65 /src/plugins/snat/in2out.c | |
parent | 026c036dd4158f9f517a8dc7c79e3ad10d126b50 (diff) |
SNAT: unknow protocol hairpinning fix
Change-Id: I15813167e7c8529f229143de4a8f64f0fb530951
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/snat/in2out.c')
-rw-r--r-- | src/plugins/snat/in2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/snat/in2out.c b/src/plugins/snat/in2out.c index d396c79c1b2..661ddeb1185 100644 --- a/src/plugins/snat/in2out.c +++ b/src/plugins/snat/in2out.c @@ -1013,7 +1013,7 @@ snat_in2out_unknown_proto (snat_main_t *sm, sum = ip_csum_update (sum, old_addr, new_addr, ip4_header_t, dst_address); ip->checksum = ip_csum_fold (sum); - vnet_buffer(b)->sw_if_index[VLIB_TX] = vnet_buffer(b)->sw_if_index[VLIB_RX]; + vnet_buffer(b)->sw_if_index[VLIB_TX] = m->fib_index; } static inline uword |