OpenSDN source code
|
#include <arp_entry.h>
Public Types | |
enum | State { INITING = 0x01, RESOLVING = 0x02, ACTIVE = 0x04, RERESOLVING = 0x08 } |
Public Member Functions | |
ArpEntry (boost::asio::io_context &io, ArpHandler *handler, ArpKey &key, const VrfEntry *vrf, State state, const Interface *itf) | |
virtual | ~ArpEntry () |
const ArpKey & | key () const |
State | state () const |
const MacAddress & | mac_address () const |
const Interface * | get_interface () const |
bool | HandleArpRequest () |
void | HandleArpReply (const MacAddress &) |
bool | RetryExpiry () |
bool | AgingExpiry () |
void | SendGratuitousArp () |
bool | DeleteArpRoute () |
bool | IsResolved () |
void | Resync (bool policy, const VnListType &vnlist, const SecurityGroupList &sg, const TagList &tag) |
int | retry_count () const |
void | SetState (State state) |
Private Member Functions | |
void | StartTimer (uint32_t timeout, uint32_t mtype) |
void | SendArpRequest () |
void | AddArpRoute (bool resolved) |
void | HandleDerivedArpRequest () |
bool | IsDerived () |
DISALLOW_COPY_AND_ASSIGN (ArpEntry) | |
Private Attributes | |
boost::asio::io_context & | io_ |
ArpKey | key_ |
const VrfEntry * | nh_vrf_ |
MacAddress | mac_address_ |
State | state_ |
int | retry_count_ |
boost::intrusive_ptr< ArpHandler > | handler_ |
Timer * | arp_timer_ |
InterfaceConstRef | interface_ |
Definition at line 22 of file arp_entry.h.
enum ArpEntry::State |
Enumerator | |
---|---|
INITING | |
RESOLVING | |
ACTIVE | |
RERESOLVING |
Definition at line 24 of file arp_entry.h.
ArpEntry::ArpEntry | ( | boost::asio::io_context & | io, |
ArpHandler * | handler, | ||
ArpKey & | key, | ||
const VrfEntry * | vrf, | ||
State | state, | ||
const Interface * | itf | ||
) |
|
virtual |
|
private |
bool ArpEntry::AgingExpiry | ( | ) |
bool ArpEntry::DeleteArpRoute | ( | ) |
|
private |
|
inline |
Definition at line 39 of file arp_entry.h.
void ArpEntry::HandleArpReply | ( | const MacAddress & | mac | ) |
bool ArpEntry::HandleArpRequest | ( | ) |
|
private |
|
private |
Definition at line 182 of file arp_entry.cc.
bool ArpEntry::IsResolved | ( | ) |
Definition at line 178 of file arp_entry.cc.
|
inline |
Definition at line 36 of file arp_entry.h.
|
inline |
Definition at line 38 of file arp_entry.h.
void ArpEntry::Resync | ( | bool | policy, |
const VnListType & | vnlist, | ||
const SecurityGroupList & | sg, | ||
const TagList & | tag | ||
) |
|
inline |
Definition at line 51 of file arp_entry.h.
bool ArpEntry::RetryExpiry | ( | ) |
|
private |
void ArpEntry::SendGratuitousArp | ( | ) |
|
inline |
|
private |
|
inline |
Definition at line 37 of file arp_entry.h.
|
private |
Definition at line 67 of file arp_entry.h.
|
private |
Definition at line 66 of file arp_entry.h.
|
private |
Definition at line 68 of file arp_entry.h.
|
private |
Definition at line 60 of file arp_entry.h.
|
private |
Definition at line 61 of file arp_entry.h.
|
private |
Definition at line 63 of file arp_entry.h.
|
private |
Definition at line 62 of file arp_entry.h.
|
private |
Definition at line 65 of file arp_entry.h.
|
private |
Definition at line 64 of file arp_entry.h.