diff options
author | 2020-11-09 12:24:03 +0100 | |
---|---|---|
committer | 2020-11-13 15:45:23 +0000 | |
commit | 25fd8ad03e6ef321604437fe8fc56ab2b3858cd7 (patch) | |
tree | f362bfad633f80ebad6c811dbf7c98ef5a701ddb /src/plugins/nat/nat_types.api | |
parent | e655240550f0670279b0ca40942887715b8f514e (diff) |
nat: cleanup & reorganization
Fixed compatibility issue between
nat ei and nat ed modes. Moved nat
syslogging to nat librarry. Deprecating
apis that will be integrated in upcoming
candidate configuration patch.
Type: refactor
Change-Id: I334b1b05b81b74667c5c76a05f768442e0dcf7e8
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat_types.api')
-rw-r--r-- | src/plugins/nat/nat_types.api | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/nat/nat_types.api b/src/plugins/nat/nat_types.api index f348e6154a3..ad4ee9faba0 100644 --- a/src/plugins/nat/nat_types.api +++ b/src/plugins/nat/nat_types.api @@ -15,6 +15,24 @@ option version = "0.0.1"; +typedef nat_timeouts +{ + u32 udp; + u32 tcp_established; + u32 tcp_transitory; + u32 icmp; +}; + +enum nat_log_level : u8 +{ + NAT_LOG_NONE = 0x00, + NAT_LOG_ERROR = 0x01, + NAT_LOG_WARNING = 0x02, + NAT_LOG_NOTICE = 0x03, + NAT_LOG_INFO = 0x04, + NAT_LOG_DEBUG = 0x05, +}; + enum nat_config_flags : u8 { NAT_IS_NONE = 0x00, |