FD.io VPP
v18.11-rc0-18-g2a3fb1a
Vector Packet Processing
|
An ACL rule is the building block of an ACL. More...
Public Member Functions | |
l2_rule (uint32_t priority, const action_t &action, const route::prefix_t &ip, const mac_address_t &mac, const mac_address_t &mac_mask) | |
Construct a new object matching the desried state. More... | |
l2_rule (const l2_rule &o)=default | |
Copy Constructor. More... | |
~l2_rule ()=default | |
Destructor. More... | |
std::string | to_string () const |
convert to string format for debug purposes More... | |
bool | operator< (const l2_rule &rule) const |
less-than operator More... | |
bool | operator== (const l2_rule &rule) const |
comparison operator (for testing) More... | |
uint32_t | priority () const |
Getters. More... | |
const action_t & | action () const |
const route::prefix_t & | src_ip () const |
const mac_address_t & | mac () const |
const mac_address_t & | mac_mask () const |
An ACL rule is the building block of an ACL.
An ACL, which is the object applied to an interface, is comprised of an ordersed sequence of ACL rules. This class is a wrapper around the VAPI generated struct and exports an API with better types.
Definition at line 31 of file acl_l2_rule.hpp.
VOM::ACL::l2_rule::l2_rule | ( | uint32_t | priority, |
const action_t & | action, | ||
const route::prefix_t & | ip, | ||
const mac_address_t & | mac, | ||
const mac_address_t & | mac_mask | ||
) |
Construct a new object matching the desried state.
Definition at line 23 of file acl_l2_rule.cpp.
|
default |
Copy Constructor.
|
default |
Destructor.
const action_t & VOM::ACL::l2_rule::action | ( | ) | const |
const mac_address_t & VOM::ACL::l2_rule::mac | ( | ) | const |
const mac_address_t & VOM::ACL::l2_rule::mac_mask | ( | ) | const |
less-than operator
Definition at line 37 of file acl_l2_rule.cpp.
comparison operator (for testing)
Definition at line 43 of file acl_l2_rule.cpp.
uint32_t VOM::ACL::l2_rule::priority | ( | ) | const |
Getters.
Definition at line 63 of file acl_l2_rule.cpp.
const route::prefix_t & VOM::ACL::l2_rule::src_ip | ( | ) | const |
std::string VOM::ACL::l2_rule::to_string | ( | void | ) | const |
convert to string format for debug purposes
Definition at line 50 of file acl_l2_rule.cpp.