FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
VOM::nat_binding::zone_t Struct Reference

NAT Zoness. More...

+ Inheritance diagram for VOM::nat_binding::zone_t:
+ Collaboration diagram for VOM::nat_binding::zone_t:

Public Member Functions

 zone_t (int v, const std::string s)
 Constructor. More...
 
 ~zone_t ()=default
 Destructor. More...
 
- Public Member Functions inherited from VOM::enum_base< zone_t >
const std::string & to_string () const
 convert to string format for debug purposes More...
 
bool operator== (const enum_base &e) const
 Comparison operator. More...
 
enum_baseoperator= (const enum_base &e)
 Assignment. More...
 
enum_baseoperator|= (const enum_base &e)
 bitwise or assignemnt More...
 
enum_base operator| (const enum_base &e1) const
 bitwise or More...
 
bool operator!= (const enum_base &e) const
 Comparison operator. More...
 
 operator int () const
 integer conversion operator More...
 
int value () const
 Return the value of the enum - same as integer conversion. More...
 

Static Public Member Functions

static const zone_tfrom_vpp (u8 is_inside)
 

Static Public Attributes

static const zone_t INSIDE
 Permit Zone. More...
 
static const zone_t OUTSIDE
 Deny Zone. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VOM::enum_base< zone_t >
 enum_base (int value, const std::string desc)
 Constructor of an enum - takes value and string description. More...
 
virtual ~enum_base ()
 Constructor. More...
 

Detailed Description

NAT Zoness.

Definition at line 36 of file nat_binding.hpp.

Constructor & Destructor Documentation

◆ zone_t()

VOM::nat_binding::zone_t::zone_t ( int  v,
const std::string  s 
)

Constructor.

Definition at line 29 of file nat_binding.cpp.

◆ ~zone_t()

VOM::nat_binding::zone_t::~zone_t ( )
default

Destructor.

Member Function Documentation

◆ from_vpp()

const nat_binding::zone_t & VOM::nat_binding::zone_t::from_vpp ( u8  is_inside)
static

Definition at line 34 of file nat_binding.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ INSIDE

const nat_binding::zone_t VOM::nat_binding::zone_t::INSIDE
static

Permit Zone.

Definition at line 51 of file nat_binding.hpp.

◆ OUTSIDE

const nat_binding::zone_t VOM::nat_binding::zone_t::OUTSIDE
static

Deny Zone.

Definition at line 56 of file nat_binding.hpp.


The documentation for this struct was generated from the following files: