FD.io VPP
v20.05.1-6-gf53edbc3b
Vector Packet Processing
|
A entry in the neighbour entry (ARP or IPv6 ND) More...
Data Structures | |
struct | flags_t |
Public Types | |
typedef std::pair< interface::key_t, boost::asio::ip::address > | key_t |
The key for a neighbour entry; the interface and IP address. More... | |
Public Member Functions | |
neighbour (const interface &itf, const boost::asio::ip::address &ip_addr, const mac_address_t &mac, const flags_t flags=flags_t::STATIC) | |
Construct an ARP entry. More... | |
neighbour (const neighbour &r) | |
Copy Construct. More... | |
~neighbour () | |
Destructor. More... | |
const key_t | key () const |
Return the object's key. More... | |
bool | operator== (const neighbour &n) const |
Comparison operator. More... | |
std::shared_ptr< neighbour > | singular () const |
Return the matching 'singular instance'. More... | |
void | replay (void) |
replay the object to create it in hardware More... | |
std::string | to_string () const |
Convert to string for debugging. More... | |
Static Public Member Functions | |
static std::shared_ptr< neighbour > | find (const key_t &k) |
Find the neighbour fromits key. More... | |
static void | dump (std::ostream &os) |
Dump all neighbours into the stream provided. More... | |
Friends | |
class | OM |
class | singular_db< key_t, neighbour > |
It's the singular_db class that calls replay() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from VOM::object_base | |
object_base ()=default | |
Constructable by derived classes only. More... | |
virtual | ~object_base ()=default |
Destructor. More... | |
A entry in the neighbour entry (ARP or IPv6 ND)
Definition at line 27 of file neighbour.hpp.
typedef std::pair<interface::key_t, boost::asio::ip::address> VOM::neighbour::key_t |
The key for a neighbour entry; the interface and IP address.
Definition at line 58 of file neighbour.hpp.
VOM::neighbour::neighbour | ( | const interface & | itf, |
const boost::asio::ip::address & | ip_addr, | ||
const mac_address_t & | mac, | ||
const flags_t | flags = flags_t::STATIC |
||
) |
Construct an ARP entry.
Definition at line 34 of file neighbour.cpp.
VOM::neighbour::neighbour | ( | const neighbour & | r | ) |
Copy Construct.
Definition at line 46 of file neighbour.cpp.
VOM::neighbour::~neighbour | ( | ) |
|
static |
Dump all neighbours into the stream provided.
Definition at line 135 of file neighbour.cpp.
Find the neighbour fromits key.
Definition at line 123 of file neighbour.cpp.
const neighbour::key_t VOM::neighbour::key | ( | ) | const |
Return the object's key.
Definition at line 70 of file neighbour.cpp.
Comparison operator.
Definition at line 64 of file neighbour.cpp.
|
virtual |
replay the object to create it in hardware
Implements VOM::object_base.
Definition at line 86 of file neighbour.cpp.
std::shared_ptr< neighbour > VOM::neighbour::singular | ( | ) | const |
Return the matching 'singular instance'.
Definition at line 129 of file neighbour.cpp.
|
virtual |
Convert to string for debugging.
Implements VOM::object_base.
Definition at line 95 of file neighbour.cpp.
|
friend |
Definition at line 169 of file neighbour.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 174 of file neighbour.hpp.