FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
An ACL ethertype list comprises a set of inbound ether types and out bound ether types to be applied to packets. More...
Public Member Functions | |
ethertype_rule_t (const ethertype_t ð, const direction_t &dir) | |
Constructor. More... | |
~ethertype_rule_t ()=default | |
Destructor. More... | |
std::string | to_string () const |
convert to string More... | |
bool | operator< (const ethertype_rule_t &other) const |
comparision operator More... | |
bool | operator== (const ethertype_rule_t &other) const |
comparision operator (for testing) More... | |
uint16_t | getEthertype (void) const |
get the ether value More... | |
const direction_t & | getDirection (void) const |
get the direction More... | |
An ACL ethertype list comprises a set of inbound ether types and out bound ether types to be applied to packets.
A list is bound to a given interface.
Definition at line 37 of file acl_ethertype.hpp.
VOM::ACL::ethertype_rule_t::ethertype_rule_t | ( | const ethertype_t & | eth, |
const direction_t & | dir | ||
) |
Constructor.
Definition at line 23 of file acl_ethertype.cpp.
|
default |
Destructor.
const direction_t & VOM::ACL::ethertype_rule_t::getDirection | ( | void | ) | const |
get the direction
Definition at line 61 of file acl_ethertype.cpp.
uint16_t VOM::ACL::ethertype_rule_t::getEthertype | ( | void | ) | const |
get the ether value
Definition at line 55 of file acl_ethertype.cpp.
bool VOM::ACL::ethertype_rule_t::operator< | ( | const ethertype_rule_t & | other | ) | const |
comparision operator
Definition at line 43 of file acl_ethertype.cpp.
bool VOM::ACL::ethertype_rule_t::operator== | ( | const ethertype_rule_t & | other | ) | const |
comparision operator (for testing)
Definition at line 49 of file acl_ethertype.cpp.
std::string VOM::ACL::ethertype_rule_t::to_string | ( | void | ) | const |
convert to string
Definition at line 31 of file acl_ethertype.cpp.