diff options
author | 2016-10-24 03:30:00 -0700 | |
---|---|---|
committer | 2016-10-31 08:26:40 +0000 | |
commit | 588144ab4552a5f54b692016ff0543decc28d1ea (patch) | |
tree | 058b03a4caa3e551ecaa617833d8120c28a9bef7 /plugins/snat-plugin/snat/snat.h | |
parent | 6ce685d79b1365588a92340e5c45cdbdea92d5db (diff) |
VPP-459: SNAT dump API for in and out interfaces
Change-Id: Ie0cba0778b094eaafa960d3f432199e1e3b2d116
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'plugins/snat-plugin/snat/snat.h')
-rw-r--r-- | plugins/snat-plugin/snat/snat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/snat-plugin/snat/snat.h b/plugins/snat-plugin/snat/snat.h index 531da284..1469f60e 100644 --- a/plugins/snat-plugin/snat/snat.h +++ b/plugins/snat-plugin/snat/snat.h @@ -127,6 +127,11 @@ typedef struct { } snat_static_mapping_t; typedef struct { + u32 sw_if_index; + u8 is_inside; +} snat_interface_t; + +typedef struct { /* Main lookup tables */ clib_bihash_8_8_t out2in; clib_bihash_8_8_t in2out; @@ -149,6 +154,9 @@ typedef struct { /* Static mapping pool */ snat_static_mapping_t * static_mappings; + /* Interface pool */ + snat_interface_t * interfaces; + /* Vector of outside addresses */ snat_address_t * addresses; |