summaryrefslogtreecommitdiffstats
path: root/src/plugins/snat/snat.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-01-16 10:54:02 -0500
committerDave Barach <dave@barachs.net>2017-01-22 08:56:38 -0500
commit8b275371d1487958d9469d2be8f5330ee8197d04 (patch)
treeda3694efc21311f725c5eeedf4bf580dda4d7e02 /src/plugins/snat/snat.h
parent248968be0fd2ef4d19b6c6ce1b019670ee8b1025 (diff)
Add static mapping support for dhcp client interfaces
Change-Id: I0412f95b71b9768d41c9c398a24adb1555bde20b Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/snat/snat.h')
-rw-r--r--src/plugins/snat/snat.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/snat/snat.h b/src/plugins/snat/snat.h
index 71f254feede..fc379dfa3ed 100644
--- a/src/plugins/snat/snat.h
+++ b/src/plugins/snat/snat.h
@@ -132,6 +132,16 @@ typedef struct {
} snat_interface_t;
typedef struct {
+ ip4_address_t l_addr;
+ u16 l_port;
+ u16 e_port;
+ u32 sw_if_index;
+ u32 vrf_id;
+ int addr_only;
+ int is_add;
+} snat_static_map_resolve_t;
+
+typedef struct {
/* User pool */
snat_user_t * users;
@@ -182,6 +192,9 @@ typedef struct {
/* sw_if_indices whose intfc addresses should be auto-added */
u32 * auto_add_sw_if_indices;
+ /* vector of interface address static mappings to resolve. */
+ snat_static_map_resolve_t *to_resolve;
+
/* Randomize port allocation order */
u32 random_seed;