#include <vnswif_listener.h>
|
| enum | bond_intf_type { VR_FABRIC = 1
, VR_BOND_SLAVES
} |
| |
| static const int | kVnswRtmProto = 109 |
| |
| static const uint32_t | kMaxBufferSize = 4096 |
| |
| typedef std::map< std::string, HostInterfaceEntry * > | HostInterfaceTable |
| |
| typedef std::set< Ip4Address > | LinkLocalAddressTable |
| |
| typedef std::map< IpSubnet, uint32_t > | IpamSubnetMap |
| |
| void | InterfaceNotify (DBTablePartBase *part, DBEntryBase *e) |
| |
| void | FabricRouteNotify (DBTablePartBase *part, DBEntryBase *e) |
| |
| void | VnNotify (DBTablePartBase *part, DBEntryBase *e) |
| |
| bool | ProcessEvent (Event *re) |
| |
| void | LinkLocalRouteFromLinkLocalEvent (Event *event) |
| |
| void | LinkLocalRouteFromRouteEvent (Event *event) |
| |
| void | AddLinkLocalRoutes () |
| |
| void | DelLinkLocalRoutes () |
| |
| void | AddIpamRoutes () |
| |
| void | SetSeen (const std::string &name, bool oper, uint32_t oper_idx) |
| |
| void | ResetSeen (const std::string &name, bool oper) |
| |
| void | Activate (const std::string &name, const HostInterfaceEntry *entry) |
| |
| void | DeActivate (const std::string &name, const HostInterfaceEntry *entry) |
| |
| void | SetLinkState (const std::string &name, bool link_up) |
| |
| bool | IsInterfaceActive (const HostInterfaceEntry *entry) |
| |
| void | HandleInterfaceEvent (const Event *event) |
| |
| void | SetAddress (const Event *event) |
| |
| void | ResetAddress (const Event *event) |
| |
| void | HandleAddressEvent (const Event *event) |
| |
| | DISALLOW_COPY_AND_ASSIGN (VnswInterfaceListenerBase) |
| |
| int | sock_fd_ |
| |
| local::datagram_protocol::socket | sock_ |
| |
| Agent * | agent_ |
| |
| uint8_t * | read_buf_ |
| |
| uint8_t | tx_buf_ [kMaxBufferSize] |
| |
| DBTableBase::ListenerId | intf_listener_id_ |
| |
| DBTableBase::ListenerId | fabric_listener_id_ |
| |
| DBTableBase::ListenerId | vn_listener_id_ |
| |
| int | seqno_ |
| |
| bool | vhost_intf_up_ |
| |
| LinkLocalAddressTable | ll_addr_table_ |
| |
| HostInterfaceTable | host_interface_table_ |
| |
| WorkQueue< Event * > * | revent_queue_ |
| |
| uint32_t | vhost_update_count_ |
| |
| uint32_t | ll_add_count_ |
| |
| uint32_t | ll_del_count_ |
| |
| IpamSubnetMap | ipam_subnet_ |
| |
Definition at line 16 of file vnswif_listener.h.
◆ VnswInterfaceListenerLinux()
| VnswInterfaceListenerLinux::VnswInterfaceListenerLinux |
( |
Agent * |
agent | ) |
|
◆ ~VnswInterfaceListenerLinux()
| VnswInterfaceListenerLinux::~VnswInterfaceListenerLinux |
( |
| ) |
|
|
virtual |
◆ AddAttr()
| int VnswInterfaceListenerLinux::AddAttr |
( |
uint8_t * |
buff, |
|
|
int |
type, |
|
|
void * |
data, |
|
|
int |
alen |
|
) |
| |
|
private |
◆ CreateSocket()
| int VnswInterfaceListenerLinux::CreateSocket |
( |
| ) |
|
|
privatevirtual |
◆ DISALLOW_COPY_AND_ASSIGN()
◆ HandleNetlinkAddrMsg()
◆ HandleNetlinkIntfMsg()
◆ HandleNetlinkRouteMsg()
◆ InitNetlinkScan()
| void VnswInterfaceListenerLinux::InitNetlinkScan |
( |
uint32_t |
type, |
|
|
uint32_t |
seqno |
|
) |
| |
|
private |
◆ NetlinkTypeToString()
| string VnswInterfaceListenerLinux::NetlinkTypeToString |
( |
uint32_t |
type | ) |
|
|
private |
◆ NlMsgDecode()
| int VnswInterfaceListenerLinux::NlMsgDecode |
( |
struct nlmsghdr * |
nl, |
|
|
std::size_t |
len, |
|
|
uint32_t |
seq_no |
|
) |
| |
|
private |
◆ ProcessEvent()
| bool VnswInterfaceListenerLinux::ProcessEvent |
( |
Event * |
re | ) |
|
|
private |
◆ ReadHandler()
| void VnswInterfaceListenerLinux::ReadHandler |
( |
const boost::system::error_code & |
error, |
|
|
std::size_t |
length |
|
) |
| |
|
private |
◆ RegisterAsyncReadHandler()
| void VnswInterfaceListenerLinux::RegisterAsyncReadHandler |
( |
| ) |
|
|
privatevirtual |
◆ SyncCurrentState()
| void VnswInterfaceListenerLinux::SyncCurrentState |
( |
| ) |
|
|
privatevirtual |
◆ UpdateLinkLocalRoute()
| void VnswInterfaceListenerLinux::UpdateLinkLocalRoute |
( |
const Ip4Address & |
addr, |
|
|
uint8_t |
plen, |
|
|
bool |
del_rt |
|
) |
| |
|
privatevirtual |
◆ TestVnswIf
The documentation for this class was generated from the following files: