Documentation ¶
Overview ¶
Package nat_types contains generated bindings for API file nat_types.api.
Contents:
2 enums 1 struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NatConfigFlags_name = map[uint8]string{ 0: "NAT_IS_NONE", 1: "NAT_IS_TWICE_NAT", 2: "NAT_IS_SELF_TWICE_NAT", 4: "NAT_IS_OUT2IN_ONLY", 8: "NAT_IS_ADDR_ONLY", 16: "NAT_IS_OUTSIDE", 32: "NAT_IS_INSIDE", 64: "NAT_IS_STATIC", 128: "NAT_IS_EXT_HOST_VALID", } NatConfigFlags_value = map[string]uint8{ "NAT_IS_NONE": 0, "NAT_IS_TWICE_NAT": 1, "NAT_IS_SELF_TWICE_NAT": 2, "NAT_IS_OUT2IN_ONLY": 4, "NAT_IS_ADDR_ONLY": 8, "NAT_IS_OUTSIDE": 16, "NAT_IS_INSIDE": 32, "NAT_IS_STATIC": 64, "NAT_IS_EXT_HOST_VALID": 128, } )
View Source
var ( NatLogLevel_name = map[uint8]string{ 0: "NAT_LOG_NONE", 1: "NAT_LOG_ERROR", 2: "NAT_LOG_WARNING", 3: "NAT_LOG_NOTICE", 4: "NAT_LOG_INFO", 5: "NAT_LOG_DEBUG", } NatLogLevel_value = map[string]uint8{ "NAT_LOG_NONE": 0, "NAT_LOG_ERROR": 1, "NAT_LOG_WARNING": 2, "NAT_LOG_NOTICE": 3, "NAT_LOG_INFO": 4, "NAT_LOG_DEBUG": 5, } )
Functions ¶
This section is empty.
Types ¶
type NatConfigFlags ¶
type NatConfigFlags uint8
NatConfigFlags defines enum 'nat_config_flags'.
const ( NAT_IS_NONE NatConfigFlags = 0 NAT_IS_TWICE_NAT NatConfigFlags = 1 NAT_IS_SELF_TWICE_NAT NatConfigFlags = 2 NAT_IS_OUT2IN_ONLY NatConfigFlags = 4 NAT_IS_ADDR_ONLY NatConfigFlags = 8 NAT_IS_OUTSIDE NatConfigFlags = 16 NAT_IS_INSIDE NatConfigFlags = 32 NAT_IS_STATIC NatConfigFlags = 64 NAT_IS_EXT_HOST_VALID NatConfigFlags = 128 )
func (NatConfigFlags) String ¶
func (x NatConfigFlags) String() string
type NatLogLevel ¶
type NatLogLevel uint8
NatLogLevel defines enum 'nat_log_level'.
const ( NAT_LOG_NONE NatLogLevel = 0 NAT_LOG_ERROR NatLogLevel = 1 NAT_LOG_WARNING NatLogLevel = 2 NAT_LOG_NOTICE NatLogLevel = 3 NAT_LOG_INFO NatLogLevel = 4 NAT_LOG_DEBUG NatLogLevel = 5 )
func (NatLogLevel) String ¶
func (x NatLogLevel) String() string
type NatTimeouts ¶
type NatTimeouts struct { UDP uint32 `binapi:"u32,name=udp" json:"udp,omitempty"` TCPEstablished uint32 `binapi:"u32,name=tcp_established" json:"tcp_established,omitempty"` TCPTransitory uint32 `binapi:"u32,name=tcp_transitory" json:"tcp_transitory,omitempty"` ICMP uint32 `binapi:"u32,name=icmp" json:"icmp,omitempty"` }
NatTimeouts defines type 'nat_timeouts'.
Click to show internal directories.
Click to hide internal directories.