16 #ifndef __VOM_L3_ACL_RULE_H__ 17 #define __VOM_L3_ACL_RULE_H__ 126 uint8_t
proto()
const;
172 uint16_t m_srcport_or_icmptype_first;
173 uint16_t m_srcport_or_icmptype_last;
174 uint16_t m_dstport_or_icmpcode_first;
175 uint16_t m_dstport_or_icmpcode_last;
182 uint8_t m_tcp_flags_mask;
183 uint8_t m_tcp_flags_value;
const action_t & action() const
std::string to_string() const
convert to string format for debug purposes
void set_src_from_port(uint16_t srcport_or_icmptype_first)
Set Src port or ICMP Type first.
l3_rule(uint32_t priority, const action_t &action, const route::prefix_t &src, const route::prefix_t &dst, uint8_t proto=0, uint16_t srcport_or_icmptype_first=0, uint16_t srcport_or_icmptype_last=0, uint16_t dstport_or_icmpcode_first=0, uint16_t dstport_or_icmpcode_last=0, uint8_t tcp_flags_mask=0, uint8_t tcp_flags_value=0)
Construct a new object matching the desried state.
void set_dst_from_port(uint16_t dstport_or_icmpcode_first)
Set Dst port or ICMP code first.
void set_tcp_flags_value(uint8_t tcp_flags_value)
Set TCP flags value.
uint16_t srcport_or_icmptype_last() const
bool operator<(const l3_rule &rule) const
less-than operator
void set_tcp_flags_mask(uint8_t tcp_flags_mask)
Set TCP flags mask.
~l3_rule()=default
Destructor.
void set_src_to_port(uint16_t srcport_or_icmptype_last)
Set Src port or ICMP Type last.
bool operator==(const l3_rule &rule) const
comparison operator (for testing)
void set_dst_ip(route::prefix_t dst)
Set Dst Ip Address.
uint16_t dstport_or_icmpcode_last() const
uint16_t dstport_or_icmpcode_first() const
const route::prefix_t & dst() const
const route::prefix_t & src() const
Getters.
void set_dst_to_port(uint16_t dstport_or_icmpcode_last)
Set Dst port or ICMP code last.
uint32_t priority() const
void set_proto(uint8_t proto)
Set proto.
The VPP Object Model (VOM) library.
An ACL rule is the building block of an ACL.
uint16_t srcport_or_icmptype_first() const
uint8_t tcp_flags_mask() const
uint8_t tcp_flags_value() const
void set_src_ip(route::prefix_t src)
Set Src Ip Address.