From 8b275371d1487958d9469d2be8f5330ee8197d04 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 16 Jan 2017 10:54:02 -0500 Subject: Add static mapping support for dhcp client interfaces Change-Id: I0412f95b71b9768d41c9c398a24adb1555bde20b Signed-off-by: Dave Barach --- src/plugins/snat/snat.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/plugins/snat/snat.h') diff --git a/src/plugins/snat/snat.h b/src/plugins/snat/snat.h index 71f254fe..fc379dfa 100644 --- a/src/plugins/snat/snat.h +++ b/src/plugins/snat/snat.h @@ -131,6 +131,16 @@ typedef struct { u8 is_inside; } 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; -- cgit 1.2.3-korg