|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
32 , m_mac_mask(mac_mask)
39 return (other.m_priority < m_priority);
45 return ((m_action == rule.m_action) && (m_src_ip == rule.m_src_ip) &&
46 (m_mac == rule.m_mac) && (m_mac_mask == rule.m_mac_mask));
55 <<
"priority:" << m_priority <<
" action:" << m_action.
to_string()
56 <<
" ip:" << m_src_ip.
to_string() <<
" mac:" << m_mac
57 <<
" mac-mask:" << m_mac_mask <<
"]";
The VPP Object Model (VOM) library.
An ACL rule is the building block of an ACL.
std::string to_string() const
convert to string format for debug purposes
const action_t & action() const
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.
const mac_address_t & mac_mask() const
std::string to_string() const
convert to string format for debug purposes
const mac_address_t & mac() const
const std::string & to_string() const
convert to string format for debug purposes
Type def of a Ethernet address.
const route::prefix_t & src_ip() const
bool operator==(const l2_rule &rule) const
comparison operator (for testing)
bool operator<(const l2_rule &rule) const
less-than operator
vl_api_mac_event_action_t action
uint32_t priority() const
Getters.