|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
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;
void set_dst_ip(route::prefix_t dst)
Set Dst Ip Address.
void set_tcp_flags_value(uint8_t tcp_flags_value)
Set TCP flags value.
uint16_t srcport_or_icmptype_first() const
void set_src_ip(route::prefix_t src)
Set Src Ip Address.
The VPP Object Model (VOM) library.
const route::prefix_t & dst() const
bool operator==(const l3_rule &rule) const
comparison operator (for testing)
bool operator<(const l3_rule &rule) const
less-than operator
const route::prefix_t & src() const
Getters.
const action_t & action() const
uint16_t dstport_or_icmpcode_first() const
uint32_t priority() const
void set_src_to_port(uint16_t srcport_or_icmptype_last)
Set Src port or ICMP Type last.
void set_src_from_port(uint16_t srcport_or_icmptype_first)
Set Src port or ICMP Type first.
void set_proto(uint8_t proto)
Set proto.
An ACL rule is the building block of an ACL.
uint8_t tcp_flags_value() const
void set_dst_from_port(uint16_t dstport_or_icmpcode_first)
Set Dst port or ICMP code first.
void set_tcp_flags_mask(uint8_t tcp_flags_mask)
Set TCP flags mask.
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.
uint16_t dstport_or_icmpcode_last() const
~l3_rule()=default
Destructor.
std::string to_string() const
convert to string format for debug purposes
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.
uint8_t tcp_flags_mask() const