|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __VOM_NEIGHBOUR_H__
17 #define __VOM_NEIGHBOUR_H__
58 typedef std::pair<interface::key_t, boost::asio::ip::address>
key_t;
91 std::shared_ptr<neighbour>
singular()
const;
96 static std::shared_ptr<neighbour>
find(
const key_t& k);
101 static void dump(std::ostream& os);
131 void handle_replay();
136 void show(std::ostream& os);
158 std::shared_ptr<interface> itf,
164 static std::shared_ptr<neighbour> find_or_add(
const neighbour& temp);
189 std::shared_ptr<interface> m_itf;
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.
The VPP Object Model (VOM) library.
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
inspect command handler Handler
const key_t key() const
Return the object's key.
static void dump(std::ostream &os)
Dump all neighbours into the stream provided.
std::pair< interface::key_t, boost::asio::ip::address > key_t
The key for a neighbour entry; the interface and IP address.
A entry in the neighbour entry (ARP or IPv6 ND)
Class definition for listeners to OM events.
vnet_hw_if_output_node_runtime_t * r
const static flags_t STATIC
bool operator==(const neighbour &n) const
Comparison operator.
std::shared_ptr< neighbour > singular() const
Return the matching 'singular instance'.
A template base class for all enum types.
A representation of an interface in VPP.
const typedef std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
std::string to_string() const
Convert to string for debugging.
manual_print typedef address
void replay(void)
replay the object to create it in hardware
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
An L3 protocol can be used to construct a prefix that is used to match packets are part of a route.
Type def of a Ethernet address.
~flags_t()=default
Destructor.
static std::shared_ptr< neighbour > find(const key_t &k)
Find the neighbour fromits key.
A Database to store the unique 'singular' instances of a single object type.
flags_t operator|(const flags_t &e1) const
void event_handler(void *tls_async)
const static flags_t NO_FIB_ENTRY
A base class for all object_base in the VPP object_base-Model.
flags_t(int v, const std::string s)
Constructor.
const static flags_t NONE
vl_api_wireguard_peer_flags_t flags