summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.h
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-07-09 01:34:20 -0700
committerDamjan Marion <dmarion@me.com>2018-07-10 10:12:57 +0000
commit8008d7cdfcf71389c98d2968070b8cda1ed433f9 (patch)
treecb32c5d9d0fa42540a1f2c9e7e91902c62524ce7 /src/plugins/nat/nat.h
parentabec942075afceff8ad01015dccfb7cf70200015 (diff)
NAT44: multiple outside FIB tables (VPP-1314)
Change-Id: I56eb15f8fd2d3049845287dc3df7870582764f8b Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r--src/plugins/nat/nat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index bd00a5246dd..97bbec21360 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -203,6 +203,11 @@ typedef struct {
} snat_address_t;
typedef struct {
+ u32 fib_index;
+ u32 refcount;
+} nat_outside_fib_t;
+
+typedef struct {
u16 in_port;
snat_det_out_key_t out;
u8 state;
@@ -350,6 +355,9 @@ typedef struct snat_main_s {
u8 psid_length;
u16 psid;
+ /* vector of outside fibs */
+ nat_outside_fib_t * outside_fibs;
+
/* Vector of twice NAT addresses for extenal hosts */
snat_address_t * twice_nat_addresses;