structured_filter¶
Warning
doxygenfile: Cannot find file “eos/structured_filter.h
Type definitions in structured_filter¶
-
namespace
eos
Enums
-
class
protocol_range_t
¶ - #include <structured_filter.h>
Range type for configuring protocol ranges of traffic-policy.
Public Functions
-
protocol_range_t
()¶
-
protocol_range_t
(const protocol_range_t &other)¶
-
protocol_range_t &
operator=
(protocol_range_t const &other)¶
-
protocol_range_t
(protocol_range_t &&other) noexcept¶
-
protocol_range_t &
operator=
(protocol_range_t &&other) noexcept¶
-
uint32_t
range_start
() const¶
-
void
range_start_is
(uint32_t range_start)¶
-
uint32_t
range_end
() const¶
-
void
range_end_is
(uint32_t range_end)¶
-
bool
operator==
(protocol_range_t const &other) const¶
-
bool
operator!=
(protocol_range_t const &other) const¶
-
bool
operator<
(protocol_range_t const &other) const¶
-
uint32_t
hash
() const¶ The hash function for type protocol_range_t.
-
void
mix_me
(hash_mix &h) const¶ The hash mix function for type protocol_range_t.
Public Static Functions
-
static void
operator delete
(void*) noexcept¶
Friends
-
friend std::ostream &
operator<<
(std::ostream &os, const protocol_range_t &obj)¶ A utility stream operator that adds a string representation of protocol_range_t to the ostream.
-
-
class
port_range_t
¶ - #include <structured_filter.h>
Range type for configuring port ranges of traffic-policy.
Public Functions
-
port_range_t
()¶
-
port_range_t
(const port_range_t &other)¶
-
port_range_t &
operator=
(port_range_t const &other)¶
-
port_range_t
(port_range_t &&other) noexcept¶
-
port_range_t &
operator=
(port_range_t &&other) noexcept¶
-
uint32_t
range_start
() const¶
-
void
range_start_is
(uint32_t range_start)¶
-
uint32_t
range_end
() const¶
-
void
range_end_is
(uint32_t range_end)¶
-
bool
operator==
(port_range_t const &other) const¶
-
bool
operator!=
(port_range_t const &other) const¶
-
bool
operator<
(port_range_t const &other) const¶
-
uint32_t
hash
() const¶ The hash function for type port_range_t.
-
void
mix_me
(hash_mix &h) const¶ The hash mix function for type port_range_t.
Public Static Functions
-
static void
operator delete
(void*) noexcept¶
Friends
-
friend std::ostream &
operator<<
(std::ostream &os, const port_range_t &obj)¶ A utility stream operator that adds a string representation of port_range_t to the ostream.
-
-
class
port_field_t
¶ - #include <structured_filter.h>
Field type used to configure the port ranges or port field-sets.
Public Functions
-
port_field_t
()¶
-
port_field_t
(const port_field_t &other)¶
-
port_field_t &
operator=
(port_field_t const &other)¶
-
port_field_t
(port_field_t &&other) noexcept¶
-
port_field_t &
operator=
(port_field_t &&other) noexcept¶
-
std::set<port_range_t> const &
src_ports
() const¶
-
void
src_ports_is
(std::set<port_range_t> const &src_ports)¶
-
void
src_ports_is
(std::set<port_range_t> &&src_ports)¶
-
void
src_port_set
(port_range_t const &value)¶ Inserts one src_port of ‘value’ to the set.
-
void
src_port_set
(port_range_t &&value)¶ Inserts one src_port of ‘value’ to the set.
-
void
src_port_del
(port_range_t const &value)¶ Deletes one src_port of ‘value’ from the set.
-
std::set<port_range_t> const &
dst_ports
() const¶
-
void
dst_ports_is
(std::set<port_range_t> const &dst_ports)¶
-
void
dst_ports_is
(std::set<port_range_t> &&dst_ports)¶
-
void
dst_port_set
(port_range_t const &value)¶ Inserts one dst_port of ‘value’ to the set.
-
void
dst_port_set
(port_range_t &&value)¶ Inserts one dst_port of ‘value’ to the set.
-
void
dst_port_del
(port_range_t const &value)¶ Deletes one dst_port of ‘value’ from the set.
-
void
src_port_field_set_set
(std::string const &value)¶ Inserts one src_port_field_set of ‘value’ to the set.
-
void
src_port_field_set_set
(std::string &&value)¶ Inserts one src_port_field_set of ‘value’ to the set.
-
void
src_port_field_set_del
(std::string const &value)¶ Deletes one src_port_field_set of ‘value’ from the set.
-
void
dst_port_field_set_set
(std::string const &value)¶ Inserts one dst_port_field_set of ‘value’ to the set.
-
void
dst_port_field_set_set
(std::string &&value)¶ Inserts one dst_port_field_set of ‘value’ to the set.
-
void
dst_port_field_set_del
(std::string const &value)¶ Deletes one dst_port_field_set of ‘value’ from the set.
-
bool
operator==
(port_field_t const &other) const¶
-
bool
operator!=
(port_field_t const &other) const¶
-
bool
operator<
(port_field_t const &other) const¶
-
uint32_t
hash
() const¶ The hash function for type port_field_t.
-
void
mix_me
(hash_mix &h) const¶ The hash mix function for type port_field_t.
Public Static Functions
-
static void
operator delete
(void*) noexcept¶
Friends
-
friend std::ostream &
operator<<
(std::ostream &os, const port_field_t &obj)¶ A utility stream operator that adds a string representation of port_field_t to the ostream.
-
-
class
protocol_field_t
¶ - #include <structured_filter.h>
Field type used to configure the protocol ranges or protocol field-sets.
Public Functions
-
protocol_field_t
()¶
-
protocol_field_t
(const protocol_field_t &other)¶
-
protocol_field_t &
operator=
(protocol_field_t const &other)¶
-
protocol_field_t
(protocol_field_t &&other) noexcept¶
-
protocol_field_t &
operator=
(protocol_field_t &&other) noexcept¶
-
std::map<uint32_t, port_field_t> const &
ports
() const¶ Getter for ‘ports’: the key of the map ports should be an unique id.
-
void
ports_is
(std::map<uint32_t, port_field_t> const &ports)¶ Setter for ‘ports’.
-
void
ports_is
(std::map<uint32_t, port_field_t> &&ports)¶ Moving Setter for ‘ports’.
-
void
port_set
(uint32_t key, port_field_t const &value)¶ Inserts key/value pair to the map.
-
void
port_set
(uint32_t key, port_field_t &&value)¶ Inserts key/value pair to the map.
-
void
port_del
(uint32_t key)¶ Deletes the key/value pair from the map.
-
bool
operator==
(protocol_field_t const &other) const¶
-
bool
operator!=
(protocol_field_t const &other) const¶
-
bool
operator<
(protocol_field_t const &other) const¶
-
uint32_t
hash
() const¶ The hash function for type protocol_field_t.
-
void
mix_me
(hash_mix &h) const¶ The hash mix function for type protocol_field_t.
Public Static Functions
-
static void
operator delete
(void*) noexcept¶
Friends
-
friend std::ostream &
operator<<
(std::ostream &os, const protocol_field_t &obj)¶ A utility stream operator that adds a string representation of protocol_field_t to the ostream.
-
-
class
tp_rule_filter_t
¶ - #include <structured_filter.h>
This type is used to store the configs of all match fields of a traffic-policy rule.
Public Functions
-
tp_rule_filter_t
()¶
-
explicit
tp_rule_filter_t
(traffic_policy_rule_type_t filter_type)¶
-
tp_rule_filter_t
(const tp_rule_filter_t &other)¶
-
tp_rule_filter_t &
operator=
(tp_rule_filter_t const &other)¶
-
tp_rule_filter_t
(tp_rule_filter_t &&other) noexcept¶
-
tp_rule_filter_t &
operator=
(tp_rule_filter_t &&other) noexcept¶
-
std::set<ip_addr_mask_t> const &
src_addrs
() const¶
-
std::set<ip_addr_mask_t> const &
dst_addrs
() const¶
-
std::map<protocol_range_t, protocol_field_t> const &
protocols
() const¶
-
void
protocols_is
(std::map<protocol_range_t, protocol_field_t> const &protocols)¶
-
void
protocols_is
(std::map<protocol_range_t, protocol_field_t> &&protocols)¶
-
void
protocol_set
(protocol_range_t key, protocol_field_t const &value)¶ Inserts key/value pair to the map.
-
void
protocol_set
(protocol_range_t key, protocol_field_t &&value)¶ Inserts key/value pair to the map.
-
void
protocol_del
(protocol_range_t key)¶ Deletes the key/value pair from the map.
-
traffic_policy_rule_type_t
filter_type
() const¶
-
void
src_addr_set
(ip_addr_mask_t const &value)¶
-
void
src_addr_del
(ip_addr_mask_t const &value)¶
-
void
src_addrs_is
(std::set<ip_addr_mask_t> const &src_addrs)¶
-
void
dst_addr_set
(ip_addr_mask_t const &value)¶
-
void
dst_addr_del
(ip_addr_mask_t const &value)¶
-
void
dst_addrs_is
(std::set<ip_addr_mask_t> const &dst_addrs)¶
-
bool
operator==
(tp_rule_filter_t const &other) const¶
-
bool
operator!=
(tp_rule_filter_t const &other) const¶
-
bool
operator<
(tp_rule_filter_t const &other) const¶
-
uint32_t
hash
() const¶ The hash function for type tp_rule_filter_t.
-
void
mix_me
(hash_mix &h) const¶ The hash mix function for type tp_rule_filter_t.
Public Static Functions
-
static void
operator delete
(void*) noexcept¶
Friends
-
friend std::ostream &
operator<<
(std::ostream &os, const tp_rule_filter_t &obj)¶ A utility stream operator that adds a string representation of tp_rule_filter_t to the ostream.
-
-
class