diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-07-09 01:34:20 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-07-10 10:12:57 +0000 |
commit | 8008d7cdfcf71389c98d2968070b8cda1ed433f9 (patch) | |
tree | cb32c5d9d0fa42540a1f2c9e7e91902c62524ce7 /src/plugins/nat/nat.h | |
parent | abec942075afceff8ad01015dccfb7cf70200015 (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.h | 8 |
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; |