summaryrefslogtreecommitdiffstats
path: root/src/plugins/snat/snat.c
diff options
context:
space:
mode:
authorMartin <magalik@cisco.com>2017-03-08 03:31:02 -0800
committerMartin <magalik@cisco.com>2017-03-08 04:38:37 -0800
commit6b7fcda46689bf540538f839c870a9981752fc2c (patch)
tree64bc0f5c009c5aea52ce2e3e0eab69cc0a0aa683 /src/plugins/snat/snat.c
parent3f844d0bc900e5db40ba74724e2b61e7943682d3 (diff)
SNAT: user_session_dump is_ip4 and vat unformating added
Change-Id: I0ffab147c3218a75b7c3bb829983f538c7b637ee Signed-off-by: Martin <magalik@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 1cf2b0c5cee..fc9f58687e4 100644
--- a/src/plugins/snat/snat.c
+++ b/src/plugins/snat/snat.c
@@ -1539,6 +1539,8 @@ vl_api_snat_user_session_dump_t_handler
q = vl_api_client_index_to_input_queue (mp->client_index);
if (q == 0)
return;
+ if (!mp->is_ip4)
+ return;
clib_memcpy (&ukey.addr, mp->ip_address, 4);
ukey.fib_index = ip4_fib_index_from_table_id (ntohl(mp->vrf_id));