OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MirrorKSyncEntry Class Reference

#include <mirror_ksync.h>

Inheritance diagram for MirrorKSyncEntry:
Collaboration diagram for MirrorKSyncEntry:

Public Member Functions

 MirrorKSyncEntry (MirrorKSyncObject *obj, const MirrorEntry *)
 
 MirrorKSyncEntry (MirrorKSyncObject *obj, const MirrorKSyncEntry *entry, uint32_t index)
 
 MirrorKSyncEntry (MirrorKSyncObject *obj, const uint32_t vrf_id, IpAddress dip, uint16_t dport)
 
 MirrorKSyncEntry (MirrorKSyncObject *obj, std::string &analyzer_name)
 
virtual ~MirrorKSyncEntry ()
 
NHKSyncEntrynh () const
 
KSyncDBObjectGetObject () const
 
virtual bool IsLess (const KSyncEntry &rhs) const
 
virtual std::string ToString () const
 
virtual KSyncEntryUnresolvedReference ()
 
virtual bool Sync (DBEntry *e)
 
virtual int AddMsg (char *buf, int buf_len)
 
virtual int ChangeMsg (char *buf, int buf_len)
 
virtual int DeleteMsg (char *buf, int buf_len)
 
uint32_t mirror_index ()
 
- Public Member Functions inherited from KSyncNetlinkDBEntry
 KSyncNetlinkDBEntry ()
 
 KSyncNetlinkDBEntry (uint32_t index)
 
virtual ~KSyncNetlinkDBEntry ()
 
virtual int MsgLen ()
 
bool Add ()
 
bool Change ()
 
bool Delete ()
 
- Public Member Functions inherited from KSyncDBEntry
 KSyncDBEntry ()
 
 KSyncDBEntry (uint32_t index)
 
virtual ~KSyncDBEntry ()
 
void SetDBEntry (DBEntry *db_entry)
 
DBEntryGetDBEntry ()
 
- Public Member Functions inherited from KSyncEntry
std::string StateString () const
 
std::string AckOperationString (KSyncEvent ack_event) const
 
std::string EventString (KSyncEvent event) const
 
 KSyncEntry ()
 
 KSyncEntry (uint32_t index)
 
virtual ~KSyncEntry ()
 
void Reset ()
 
void Reset (uint32_t index)
 
bool operator< (const KSyncEntry &rhs) const
 
virtual bool ShouldReEvalBackReference () const
 
bool IsResolved ()
 
virtual bool IsDataResolved ()
 
virtual void Response ()
 
virtual bool AllowDeleteStateComp ()
 
virtual void ErrorHandler (int err, uint32_t seqno, KSyncEvent event) const
 
virtual std::string VrouterError (uint32_t error) const
 
virtual bool pre_alloc_rx_buffer () const
 
virtual uint32_t GetTableIndex () const
 
virtual void StaleTimerExpired ()
 
size_t GetIndex () const
 
KSyncState GetState () const
 
bool del_add_pending () const
 
uint32_t GetRefCount () const
 
bool Seen () const
 
bool stale () const
 
void SetSeen ()
 
bool IsDeleted ()
 
bool IsActive ()
 
void set_del_add_pending (bool pending)
 
void RecordTransition (KSyncState from, KSyncState to, KSyncEvent event)
 
- Public Member Functions inherited from DBState
virtual ~DBState ()
 

Private Member Functions

int Encode (sandesh_op::type op, char *buf, int buf_len)
 
 DISALLOW_COPY_AND_ASSIGN (MirrorKSyncEntry)
 

Private Attributes

MirrorKSyncObjectksync_obj_
 
uint32_t vrf_id_
 
IpAddress sip_
 
uint16_t sport_
 
IpAddress dip_
 
uint16_t dport_
 
KSyncEntryPtr nh_
 
std::string analyzer_name_
 
uint8_t mirror_flag_
 
uint32_t vni_
 
bool nic_assisted_mirroring_
 
uint16_t nic_assisted_mirroring_vlan_
 
uint32_t mirror_index_
 

Additional Inherited Members

- Public Types inherited from KSyncDBEntry
typedef std::list< DBEntry * > DupEntryList
 
- Public Types inherited from KSyncEntry
enum  KSyncState {
  INIT, TEMP, ADD_DEFER, CHANGE_DEFER,
  IN_SYNC, SYNC_WAIT, NEED_SYNC, DEL_DEFER_SYNC,
  DEL_DEFER_REF, DEL_DEFER_DEL_ACK, DEL_ACK_WAIT, RENEW_WAIT,
  FREE_WAIT
}
 
enum  KSyncEvent {
  ADD_CHANGE_REQ, ADD_ACK, CHANGE_ACK, DEL_REQ,
  DEL_ADD_REQ, DEL_ACK, RE_EVAL, INT_PTR_REL,
  INVALID
}
 
typedef boost::intrusive_ptr
< KSyncEntry
KSyncEntryPtr
 
- Static Public Member Functions inherited from KSyncEntry
static std::string VrouterErrorToString (uint32_t error)
 
- Static Public Attributes inherited from KSyncEntry
static const size_t kInvalidIndex = 0xFFFFFFFF
 
static const int kDefaultMsgSize = 512
 
- Protected Member Functions inherited from KSyncEntry
void SetIndex (size_t index)
 
void SetState (KSyncState state)
 

Detailed Description

Definition at line 19 of file mirror_ksync.h.

Constructor & Destructor Documentation

MirrorKSyncEntry::MirrorKSyncEntry ( MirrorKSyncObject obj,
const MirrorEntry mirror_entry 
)

Definition at line 31 of file mirror_ksync.cc.

MirrorKSyncEntry::MirrorKSyncEntry ( MirrorKSyncObject obj,
const MirrorKSyncEntry entry,
uint32_t  index 
)

Definition at line 12 of file mirror_ksync.cc.

MirrorKSyncEntry::MirrorKSyncEntry ( MirrorKSyncObject obj,
const uint32_t  vrf_id,
IpAddress  dip,
uint16_t  dport 
)

Definition at line 24 of file mirror_ksync.cc.

MirrorKSyncEntry::MirrorKSyncEntry ( MirrorKSyncObject obj,
std::string &  analyzer_name 
)

Definition at line 44 of file mirror_ksync.cc.

MirrorKSyncEntry::~MirrorKSyncEntry ( )
virtual

Definition at line 50 of file mirror_ksync.cc.

Member Function Documentation

int MirrorKSyncEntry::AddMsg ( char *  buf,
int  buf_len 
)
virtual

Implements KSyncNetlinkDBEntry.

Definition at line 153 of file mirror_ksync.cc.

Here is the call graph for this function:

int MirrorKSyncEntry::ChangeMsg ( char *  buf,
int  buf_len 
)
virtual

Implements KSyncNetlinkDBEntry.

Definition at line 158 of file mirror_ksync.cc.

Here is the call graph for this function:

int MirrorKSyncEntry::DeleteMsg ( char *  buf,
int  buf_len 
)
virtual

Implements KSyncNetlinkDBEntry.

Definition at line 162 of file mirror_ksync.cc.

Here is the call graph for this function:

MirrorKSyncEntry::DISALLOW_COPY_AND_ASSIGN ( MirrorKSyncEntry  )
private
int MirrorKSyncEntry::Encode ( sandesh_op::type  op,
char *  buf,
int  buf_len 
)
private

Definition at line 128 of file mirror_ksync.cc.

Here is the call graph for this function:

KSyncDBObject * MirrorKSyncEntry::GetObject ( ) const
virtual

Implements KSyncEntry.

Definition at line 53 of file mirror_ksync.cc.

bool MirrorKSyncEntry::IsLess ( const KSyncEntry rhs) const
virtual

Implements KSyncEntry.

Definition at line 57 of file mirror_ksync.cc.

uint32_t MirrorKSyncEntry::mirror_index ( )
inline

Definition at line 40 of file mirror_ksync.h.

NHKSyncEntry* MirrorKSyncEntry::nh ( ) const
inline

Definition at line 29 of file mirror_ksync.h.

bool MirrorKSyncEntry::Sync ( DBEntry e)
virtual

Implements KSyncDBEntry.

Definition at line 74 of file mirror_ksync.cc.

Here is the call graph for this function:

std::string MirrorKSyncEntry::ToString ( ) const
virtual

Implements KSyncEntry.

Definition at line 62 of file mirror_ksync.cc.

Here is the call graph for this function:

KSyncEntry * MirrorKSyncEntry::UnresolvedReference ( )
virtual

Implements KSyncEntry.

Definition at line 167 of file mirror_ksync.cc.

Here is the call graph for this function:

Member Data Documentation

std::string MirrorKSyncEntry::analyzer_name_
private

Definition at line 50 of file mirror_ksync.h.

IpAddress MirrorKSyncEntry::dip_
private

Definition at line 47 of file mirror_ksync.h.

uint16_t MirrorKSyncEntry::dport_
private

Definition at line 48 of file mirror_ksync.h.

MirrorKSyncObject* MirrorKSyncEntry::ksync_obj_
private

Definition at line 43 of file mirror_ksync.h.

uint8_t MirrorKSyncEntry::mirror_flag_
private

Definition at line 51 of file mirror_ksync.h.

uint32_t MirrorKSyncEntry::mirror_index_
private

Definition at line 55 of file mirror_ksync.h.

KSyncEntryPtr MirrorKSyncEntry::nh_
private

Definition at line 49 of file mirror_ksync.h.

bool MirrorKSyncEntry::nic_assisted_mirroring_
private

Definition at line 53 of file mirror_ksync.h.

uint16_t MirrorKSyncEntry::nic_assisted_mirroring_vlan_
private

Definition at line 54 of file mirror_ksync.h.

IpAddress MirrorKSyncEntry::sip_
private

Definition at line 45 of file mirror_ksync.h.

uint16_t MirrorKSyncEntry::sport_
private

Definition at line 46 of file mirror_ksync.h.

uint32_t MirrorKSyncEntry::vni_
private

Definition at line 52 of file mirror_ksync.h.

uint32_t MirrorKSyncEntry::vrf_id_
private

Definition at line 44 of file mirror_ksync.h.


The documentation for this class was generated from the following files: