OpenSDN source code
CryptTunnelEntry Class Reference

#include <crypt_tunnel.h>

Inheritance diagram for CryptTunnelEntry:
Collaboration diagram for CryptTunnelEntry:

Public Member Functions

 CryptTunnelEntry (IpAddress remote_ip)
 
virtual ~CryptTunnelEntry ()
 
virtual bool IsLess (const DBEntry &rhs) const
 
virtual KeyPtr GetDBRequestKey () const
 
virtual void SetKey (const DBRequestKey *key)
 
virtual string ToString () const
 
uint32_t GetRefCount () const
 
bool DBEntrySandesh (Sandesh *sresp, std::string &name) const
 
void SendObjectLog (SandeshTraceBufferPtr ptr, AgentLogEvent::type event) const
 
bool GetTunnelAvailable () const
 
bool GetVRToVRCrypt () const
 
const IpAddress * GetRemoteIp () const
 
const IpAddress * GetSourceIp () const
 
void SetTunnelAvailable (bool available)
 
void SetVRToVRCrypt (bool crypt)
 
void UpdateTunnelReference ()
 
CryptTunnelTaskBase * StartCryptTunnel ()
 
void StopCryptTunnel ()
 
void ResyncNH ()
 
void PostAdd ()
 
- Public Member Functions inherited from AgentDBEntry
 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
void SetRefState () const
 
void ClearRefState () const
 
bool IsActive () const
 
DBState * GetAgentDBEntryState (int listener_id)
 
const DBState * GetAgentDBEntryState (int listener_id) const
 
virtual void AllocateResources (ResourceManager *resource_manager)
 
virtual void FreeResources (ResourceManager *resource_manager)
 
- Public Member Functions inherited from DBEntry
 DBEntry ()
 
virtual ~DBEntry ()
 
bool operator< (const DBEntry &rhs) const
 
- Public Member Functions inherited from DBEntryBase
 DBEntryBase ()
 
virtual ~DBEntryBase ()
 
virtual bool IsMoreSpecific (const std::string &match) const
 
virtual bool IsLessSpecific (const std::string &match) const
 
void SetState (DBTableBase *tbl_base, ListenerId listener, DBState *state)
 
void ClearState (DBTableBase *tbl_base, ListenerId listener)
 
DBState * GetState (DBTableBase *tbl_base, ListenerId listener) const
 
const DBState * GetState (const DBTableBase *tbl_base, ListenerId listener) const
 
bool is_state_empty (DBTablePartBase *tpart)
 
bool is_state_empty_unlocked (DBTablePartBase *tpart)
 
void Delete ()
 
void MarkDelete ()
 
void ClearDelete ()
 
bool IsDeleted () const
 
void set_onlist ()
 
void clear_onlist ()
 
bool is_onlist ()
 
void SetOnRemoveQ ()
 
bool IsOnRemoveQ ()
 
void ClearOnRemoveQ ()
 
void set_last_change_at (uint64_t time)
 
void set_last_change_at_to_now ()
 
const uint64_t last_change_at () const
 
const std::string last_change_at_str () const
 
void set_last_update_at (uint64_t time)
 
void set_last_update_at_to_now ()
 
const uint64_t last_update_at () const
 
DBTablePartBase * get_table_partition () const
 
void set_table_partition (DBTablePartBase *tpart)
 
DBTableBase * get_table () const
 
void Notify ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (CryptTunnelEntry)
 
- Private Member Functions inherited from AgentRefCount< CryptTunnelEntry >
uint32_t GetRefCount () const
 
 AgentRefCount ()
 
 AgentRefCount (const AgentRefCount &)
 
AgentRefCount & operator= (const AgentRefCount &)
 
virtual ~AgentRefCount ()
 
void swap (AgentRefCount &)
 

Private Attributes

IpAddress remote_ip_
 
IpAddress source_ip_
 
bool tunnel_available_
 
bool vr_to_vr_crypt_
 
CryptTunnelTask * tunnel_task_
 
- Private Attributes inherited from AgentRefCount< CryptTunnelEntry >
std::mutex back_ref_mutex_
 
std::set< IntrusiveReferrer > back_ref_set_
 

Friends

class CryptTunnelTable
 

Additional Inherited Members

- Public Types inherited from AgentDBEntry
typedef boost::intrusive_ptr< AgentDBEntry > AgentDBEntyRef
 
- Public Types inherited from DBEntryBase
typedef DBTableBase::ListenerId ListenerId
 
typedef std::unique_ptr< DBRequestKey > KeyPtr
 
- Public Attributes inherited from DBEntryBase
boost::intrusive::list_member_hook chg_list_
 

Detailed Description

Definition at line 50 of file crypt_tunnel.h.

Constructor & Destructor Documentation

◆ CryptTunnelEntry()

CryptTunnelEntry::CryptTunnelEntry ( IpAddress  remote_ip)
inline

Definition at line 52 of file crypt_tunnel.h.

◆ ~CryptTunnelEntry()

virtual CryptTunnelEntry::~CryptTunnelEntry ( )
inlinevirtual

Definition at line 55 of file crypt_tunnel.h.

Member Function Documentation

◆ DBEntrySandesh()

bool CryptTunnelEntry::DBEntrySandesh ( Sandesh *  sresp,
std::string &  name 
) const
virtual

Implements AgentDBEntry.

Definition at line 231 of file crypt_tunnel.cc.

◆ DISALLOW_COPY_AND_ASSIGN()

CryptTunnelEntry::DISALLOW_COPY_AND_ASSIGN ( CryptTunnelEntry  )
private

◆ GetDBRequestKey()

DBEntryBase::KeyPtr CryptTunnelEntry::GetDBRequestKey ( ) const
virtual

Implements DBEntryBase.

Definition at line 42 of file crypt_tunnel.cc.

◆ GetRefCount()

uint32_t CryptTunnelEntry::GetRefCount ( ) const
inlinevirtual

Implements AgentDBEntry.

Definition at line 61 of file crypt_tunnel.h.

Here is the call graph for this function:

◆ GetRemoteIp()

const IpAddress* CryptTunnelEntry::GetRemoteIp ( ) const
inline

Definition at line 69 of file crypt_tunnel.h.

◆ GetSourceIp()

const IpAddress* CryptTunnelEntry::GetSourceIp ( ) const
inline

Definition at line 70 of file crypt_tunnel.h.

◆ GetTunnelAvailable()

bool CryptTunnelEntry::GetTunnelAvailable ( ) const
inline

Definition at line 67 of file crypt_tunnel.h.

◆ GetVRToVRCrypt()

bool CryptTunnelEntry::GetVRToVRCrypt ( ) const
inline

Definition at line 68 of file crypt_tunnel.h.

◆ IsLess()

bool CryptTunnelEntry::IsLess ( const DBEntry &  rhs) const
virtual

Implements DBEntry.

Definition at line 33 of file crypt_tunnel.cc.

◆ PostAdd()

void CryptTunnelEntry::PostAdd ( )
virtual

Reimplemented from AgentDBEntry.

Definition at line 52 of file crypt_tunnel.cc.

◆ ResyncNH()

void CryptTunnelEntry::ResyncNH ( )

Definition at line 56 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ SendObjectLog()

void CryptTunnelEntry::SendObjectLog ( SandeshTraceBufferPtr  ptr,
AgentLogEvent::type  event 
) const

Definition at line 248 of file crypt_tunnel.cc.

◆ SetKey()

void CryptTunnelEntry::SetKey ( const DBRequestKey *  key)
virtual

Implements DBEntry.

Definition at line 47 of file crypt_tunnel.cc.

◆ SetTunnelAvailable()

void CryptTunnelEntry::SetTunnelAvailable ( bool  available)
inline

Definition at line 71 of file crypt_tunnel.h.

◆ SetVRToVRCrypt()

void CryptTunnelEntry::SetVRToVRCrypt ( bool  crypt)
inline

Definition at line 72 of file crypt_tunnel.h.

◆ StartCryptTunnel()

CryptTunnelTaskBase * CryptTunnelEntry::StartCryptTunnel ( )

Definition at line 478 of file crypt_tunnel.cc.

◆ StopCryptTunnel()

void CryptTunnelEntry::StopCryptTunnel ( )

Definition at line 485 of file crypt_tunnel.cc.

Here is the call graph for this function:

◆ ToString()

string CryptTunnelEntry::ToString ( ) const
virtual

Implements DBEntryBase.

Definition at line 38 of file crypt_tunnel.cc.

◆ UpdateTunnelReference()

void CryptTunnelEntry::UpdateTunnelReference ( )

Definition at line 473 of file crypt_tunnel.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ CryptTunnelTable

friend class CryptTunnelTable
friend

Definition at line 79 of file crypt_tunnel.h.

Member Data Documentation

◆ remote_ip_

IpAddress CryptTunnelEntry::remote_ip_
private

Definition at line 80 of file crypt_tunnel.h.

◆ source_ip_

IpAddress CryptTunnelEntry::source_ip_
private

Definition at line 81 of file crypt_tunnel.h.

◆ tunnel_available_

bool CryptTunnelEntry::tunnel_available_
private

Definition at line 82 of file crypt_tunnel.h.

◆ tunnel_task_

CryptTunnelTask* CryptTunnelEntry::tunnel_task_
private

Definition at line 84 of file crypt_tunnel.h.

◆ vr_to_vr_crypt_

bool CryptTunnelEntry::vr_to_vr_crypt_
private

Definition at line 83 of file crypt_tunnel.h.


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