summaryrefslogtreecommitdiffstats
path: root/src/plugins/snat/snat.c
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2017-04-03 08:43:58 +0200
committerFlorin Coras <florin.coras@gmail.com>2017-04-11 20:38:20 +0000
commit7a1bde061a919af42645e3bc09206b98fbfde9d9 (patch)
treec552d142eabbcce376928fb8ab67345083d2ccd5 /src/plugins/snat/snat.c
parent9f171f5e20d4f30316626987a3dc66c9730e6d73 (diff)
Add ICMP support for deterministic NAT
Change-Id: I9a6bcb7d173a2c13d89784e7ff8a6e42dcee201f Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/plugins/snat/snat.c')
-rw-r--r--src/plugins/snat/snat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/snat/snat.c b/src/plugins/snat/snat.c
index 70b6a6e285e..65d26b3cda2 100644
--- a/src/plugins/snat/snat.c
+++ b/src/plugins/snat/snat.c
@@ -2549,6 +2549,8 @@ snat_config (vlib_main_t * vm, unformat_input_t * input)
{
sm->in2out_node_index = snat_det_in2out_node.index;
sm->out2in_node_index = snat_det_out2in_node.index;
+ sm->icmp_match_in2out_cb = icmp_match_in2out_det;
+ sm->icmp_match_out2in_cb = icmp_match_out2in_det;
}
else
{