neighbor_table_impl

Warning

doxygenfile: Cannot find file “eos/neighbor_table_impl.h

Type definitions in neighbor_table_impl

namespace eos
class neighbor_key_impl_t
#include <neighbor_table_impl.h>

The neighbor entry key class. Maps an IP address to its associated MAC address on a specific interface. Note: the “intf_id” attribute is only relevant for IPv6 neighbors.

Public Functions

neighbor_key_impl_t()
neighbor_key_impl_t(ip_addr_t const & ip_addr)
neighbor_key_impl_t(ip_addr_t const & ip_addr, intf_id_t intf_id)

IPv6 neighbor keys include an interface ID.

ip_addr_t ip_addr() const

Getter for ‘ip_addr’: the ip address of the neighbor entry.

intf_id_t intf_id() const

Getter for ‘intf_id’: the interface of the neighbor entry.

bool operator==(neighbor_key_impl_t const & other) const
bool operator!=(neighbor_key_impl_t const & other) const
bool operator<(neighbor_key_impl_t const & other) const
uint32_t hash() const

The hash function for type neighbor_key_t.

void mix_me(hash_mix & h) const

The hash mix function for type neighbor_key_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

ip_addr_t ip_addr_
intf_id_t intf_id_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of neighbor_key_t to the ostream.

class neighbor_entry_impl_t
#include <neighbor_table_impl.h>

The neighbor entry class.

Public Functions

neighbor_entry_impl_t()
neighbor_entry_impl_t(neighbor_key_t const & neighbor_key, eth_addr_t eth_addr, neighbor_entry_type_t entry_type)
neighbor_key_t neighbor_key() const

Getter for ‘neighbor_key’: the key of the neighbor entry.

eth_addr_t eth_addr() const

Getter for ‘eth_addr’: the Ethernet address of the neighbor entry.

neighbor_entry_type_t entry_type() const

Getter for ‘entry_type’: the type of neighbor entry, it will be either STATIC or DYNAMIC.

bool operator==(neighbor_entry_impl_t const & other) const
bool operator!=(neighbor_entry_impl_t const & other) const
bool operator<(neighbor_entry_impl_t const & other) const
uint32_t hash() const

The hash function for type neighbor_entry_t.

void mix_me(hash_mix & h) const

The hash mix function for type neighbor_entry_t.

std::string to_string() const

Returns a string representation of the current object’s values.

Private Members

neighbor_key_t neighbor_key_
eth_addr_t eth_addr_
neighbor_entry_type_t entry_type_

Friends

friend std::ostream & operator<<

A utility stream operator that adds a string representation of neighbor_entry_t to the ostream.