directflow_impl¶
Warning
doxygenfile: Cannot find file “eos/directflow_impl.h
Type definitions in directflow_impl¶
-
namespace
eos -
class
flow_match_impl_t¶ - #include <directflow_impl.h>
Match criteria for a flow.
Public Functions
-
flow_match_impl_t()¶
-
flow_match_field_set_t
match_field_set() const¶ Getter for ‘match_field_set’: the fields to match on.
-
void
match_field_set_is(flow_match_field_set_t match_field_set)¶ Setter for ‘match_field_set’.
-
std::set<intf_id_t> const &
input_intfs() const¶ Getter for ‘input_intfs’: the input interfaces to match on.
-
eth_addr_t
eth_src() const¶ Getter for ‘eth_src’: the source Ethernet address to match on.
-
void
eth_src_is(eth_addr_t eth_src)¶ Setter for ‘eth_src’.
-
void
eth_src_is(eth_addr_t src, eth_addr_t mask)¶
-
eth_addr_t
eth_src_mask() const¶
-
void
eth_src_mask_is(eth_addr_t eth_src_mask)¶
-
eth_addr_t
eth_dst() const¶ Getter for ‘eth_dst’: the destination Ethernet address to match on.
-
void
eth_dst_is(eth_addr_t eth_dst)¶ Setter for ‘eth_dst’.
-
void
eth_dst_is(eth_addr_t dst, eth_addr_t mask)¶
-
eth_addr_t
eth_dst_mask() const¶
-
void
eth_dst_mask_is(eth_addr_t eth_dst_mask)¶
-
eth_type_t
eth_type() const¶ Getter for ‘eth_type’: the Ethernet type to match on.
-
void
eth_type_is(eth_type_t eth_type)¶ Setter for ‘eth_type’.
-
cos_t
cos() const¶ Getter for ‘cos’: the class of service to match on, only used if vlan_id is set to something other than 0.
-
bool
operator==(flow_match_impl_t const &other) const¶
-
bool
operator!=(flow_match_impl_t const &other) const¶
-
bool
operator<(flow_match_impl_t const &other) const¶
-
uint32_t
hash() const¶ The hash function for type flow_match_t.
-
void
mix_me(hash_mix &h) const¶ The hash mix function for type flow_match_t.
Private Members
-
flow_match_field_set_t
match_field_set_¶
-
eth_addr_t
eth_src_¶
-
eth_addr_t
eth_src_mask_¶
-
eth_addr_t
eth_dst_¶
-
eth_addr_t
eth_dst_mask_¶
-
eth_type_t
eth_type_¶
Friends
-
std::ostream &
operator<<(std::ostream &os, const flow_match_impl_t &obj)¶ A utility stream operator that adds a string representation of flow_match_t to the ostream.
-
-
class
flow_action_impl_t¶ - #include <directflow_impl.h>
Defines the actions to take on a matching flow.
Public Functions
-
flow_action_impl_t()¶
-
flow_action_set_t
action_set() const¶ Getter for ‘action_set’: actions that are enabled.
-
void
action_set_is(flow_action_set_t action_set)¶ Setter for ‘action_set’.
-
std::set<intf_id_t> const &
output_intfs() const¶ Getter for ‘output_intfs’: 0 or more the output interfaces, passing in the empty set will cause the packet to be dropped.
-
eth_addr_t
eth_src() const¶ Getter for ‘eth_src’: the source Ethernet address.
-
void
eth_src_is(eth_addr_t eth_src)¶ Setter for ‘eth_src’.
-
eth_addr_t
eth_dst() const¶ Getter for ‘eth_dst’: the destination Ethernet address.
-
void
eth_dst_is(eth_addr_t eth_dst)¶ Setter for ‘eth_dst’.
-
bool
operator==(flow_action_impl_t const &other) const¶
-
bool
operator!=(flow_action_impl_t const &other) const¶
-
uint32_t
hash() const¶ The hash function for type flow_action_t.
-
void
mix_me(hash_mix &h) const¶ The hash mix function for type flow_action_t.
Friends
-
std::ostream &
operator<<(std::ostream &os, const flow_action_impl_t &obj)¶ A utility stream operator that adds a string representation of flow_action_t to the ostream.
-
-
class
flow_entry_impl_t¶ - #include <directflow_impl.h>
Defines a flow entry.
Public Functions
-
flow_entry_impl_t()¶
-
flow_entry_impl_t(std::string const &name, flow_match_t match, flow_action_t action, flow_priority_t priority)¶
-
flow_match_t
match() const¶
-
flow_action_t
action() const¶
-
flow_priority_t
priority() const¶
-
bool
operator==(flow_entry_impl_t const &other) const¶
-
bool
operator!=(flow_entry_impl_t const &other) const¶
-
uint32_t
hash() const¶ The hash function for type flow_entry_t.
-
void
mix_me(hash_mix &h) const¶ The hash mix function for type flow_entry_t.
Friends
-
std::ostream &
operator<<(std::ostream &os, const flow_entry_impl_t &obj)¶ A utility stream operator that adds a string representation of flow_entry_t to the ostream.
-
-
class
flow_counters_impl_t¶ - #include <directflow_impl.h>
Defines counters for a flow.
Public Functions
-
flow_counters_impl_t()¶
-
uint64_t
bytes() const¶
-
uint64_t
packets() const¶
-
bool
operator==(flow_counters_impl_t const &other) const¶
-
bool
operator!=(flow_counters_impl_t const &other) const¶
-
uint32_t
hash() const¶ The hash function for type flow_counters_t.
-
void
mix_me(hash_mix &h) const¶ The hash mix function for type flow_counters_t.
Friends
-
friend
eos::flow_helper
-
std::ostream &
operator<<(std::ostream &os, const flow_counters_impl_t &obj)¶ A utility stream operator that adds a string representation of flow_counters_t to the ostream.
-
-
class