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 route::prefix_t & src() const
Getters.
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.
uint8_t tcp_flags_mask() const
uint32_t priority() const
uint8_t tcp_flags_value() const
void set_tcp_flags_mask(uint8_t tcp_flags_mask)
Set TCP flags mask.
~l3_rule()=default
Destructor.
uint16_t dstport_or_icmpcode_first() const
void set_src_to_port(uint16_t srcport_or_icmptype_last)
Set Src port or ICMP Type last.
void set_dst_ip(route::prefix_t dst)
Set Dst Ip Address.
bool operator==(const l3_rule &rule) const
comparison operator (for testing)
uint16_t srcport_or_icmptype_last() const
void set_dst_to_port(uint16_t dstport_or_icmpcode_last)
Set Dst port or ICMP code last.
void set_proto(uint8_t proto)
Set proto.
const route::prefix_t & dst() const
std::string to_string() const
convert to string format for debug purposes
uint16_t srcport_or_icmptype_first() const
The VPP Object Model (VOM) library.
An ACL rule is the building block of an ACL.
uint16_t dstport_or_icmpcode_last() const
bool operator<(const l3_rule &rule) const
less-than operator
void set_src_ip(route::prefix_t src)
Set Src Ip Address.