FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
A entry in the neighbour entry (ARP or IPv6 ND) More...
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) | |
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 34 of file neighbour.hpp.
VOM::neighbour::neighbour | ( | const interface & | itf, |
const boost::asio::ip::address & | ip_addr, | ||
const mac_address_t & | mac | ||
) |
Construct an ARP entry.
Definition at line 24 of file neighbour.cpp.
VOM::neighbour::neighbour | ( | const neighbour & | r | ) |
Copy Construct.
Definition at line 34 of file neighbour.cpp.
VOM::neighbour::~neighbour | ( | ) |
|
static |
Dump all neighbours into the stream provided.
Definition at line 122 of file neighbour.cpp.
Find the neighbour fromits key.
Definition at line 110 of file neighbour.cpp.
const neighbour::key_t VOM::neighbour::key | ( | ) | const |
Return the object's key.
Definition at line 57 of file neighbour.cpp.
Comparison operator.
Definition at line 51 of file neighbour.cpp.
|
virtual |
replay the object to create it in hardware
Implements VOM::object_base.
Definition at line 73 of file neighbour.cpp.
std::shared_ptr< neighbour > VOM::neighbour::singular | ( | ) | const |
Return the matching 'singular instance'.
Definition at line 116 of file neighbour.cpp.
|
virtual |
Convert to string for debugging.
Implements VOM::object_base.
Definition at line 82 of file neighbour.cpp.
|
friend |
Definition at line 144 of file neighbour.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 149 of file neighbour.hpp.