OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 IpAddressGetRemoteIp () const
 
const IpAddressGetSourceIp () const
 
void SetTunnelAvailable (bool available)
 
void SetVRToVRCrypt (bool crypt)
 
void UpdateTunnelReference ()
 
CryptTunnelTaskBaseStartCryptTunnel ()
 
void StopCryptTunnel ()
 
void ResyncNH ()
 
void PostAdd ()
 
- Public Member Functions inherited from AgentDBEntry
 AgentDBEntry ()
 
virtual ~AgentDBEntry ()
 
void SetRefState () const
 
void ClearRefState () const
 
bool IsActive () const
 
DBStateGetAgentDBEntryState (int listener_id)
 
const DBStateGetAgentDBEntryState (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)
 
DBStateGetState (DBTableBase *tbl_base, ListenerId listener) const
 
const DBStateGetState (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
 
DBTablePartBaseget_table_partition () const
 
void set_table_partition (DBTablePartBase *tpart)
 
DBTableBaseget_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 &)
 
AgentRefCountoperator= (const AgentRefCount &)
 
virtual ~AgentRefCount ()
 
void swap (AgentRefCount &)
 

Private Attributes

IpAddress remote_ip_
 
IpAddress source_ip_
 
bool tunnel_available_
 
bool vr_to_vr_crypt_
 
CryptTunnelTasktunnel_task_
 
- Private Attributes inherited from AgentRefCount< CryptTunnelEntry >
tbb::mutex back_ref_mutex_
 
std::set< IntrusiveReferrerback_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 ( IpAddress  remote_ip)
inline

Definition at line 52 of file crypt_tunnel.h.

virtual CryptTunnelEntry::~CryptTunnelEntry ( )
inlinevirtual

Definition at line 55 of file crypt_tunnel.h.

Member Function Documentation

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

Implements AgentDBEntry.

Definition at line 231 of file crypt_tunnel.cc.

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

Implements DBEntryBase.

Definition at line 42 of file crypt_tunnel.cc.

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:

const IpAddress* CryptTunnelEntry::GetRemoteIp ( ) const
inline

Definition at line 69 of file crypt_tunnel.h.

const IpAddress* CryptTunnelEntry::GetSourceIp ( ) const
inline

Definition at line 70 of file crypt_tunnel.h.

bool CryptTunnelEntry::GetTunnelAvailable ( ) const
inline

Definition at line 67 of file crypt_tunnel.h.

bool CryptTunnelEntry::GetVRToVRCrypt ( ) const
inline

Definition at line 68 of file crypt_tunnel.h.

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

Implements DBEntry.

Definition at line 33 of file crypt_tunnel.cc.

void CryptTunnelEntry::PostAdd ( )
virtual

Reimplemented from AgentDBEntry.

Definition at line 52 of file crypt_tunnel.cc.

void CryptTunnelEntry::ResyncNH ( )

Definition at line 56 of file crypt_tunnel.cc.

Here is the call graph for this function:

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

Definition at line 248 of file crypt_tunnel.cc.

void CryptTunnelEntry::SetKey ( const DBRequestKey key)
virtual

Implements DBEntry.

Definition at line 47 of file crypt_tunnel.cc.

void CryptTunnelEntry::SetTunnelAvailable ( bool  available)
inline

Definition at line 71 of file crypt_tunnel.h.

void CryptTunnelEntry::SetVRToVRCrypt ( bool  crypt)
inline

Definition at line 72 of file crypt_tunnel.h.

CryptTunnelTaskBase * CryptTunnelEntry::StartCryptTunnel ( )

Definition at line 478 of file crypt_tunnel.cc.

void CryptTunnelEntry::StopCryptTunnel ( )

Definition at line 485 of file crypt_tunnel.cc.

Here is the call graph for this function:

string CryptTunnelEntry::ToString ( ) const
virtual

Implements DBEntryBase.

Definition at line 38 of file crypt_tunnel.cc.

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

friend class CryptTunnelTable
friend

Definition at line 79 of file crypt_tunnel.h.

Member Data Documentation

IpAddress CryptTunnelEntry::remote_ip_
private

Definition at line 80 of file crypt_tunnel.h.

IpAddress CryptTunnelEntry::source_ip_
private

Definition at line 81 of file crypt_tunnel.h.

bool CryptTunnelEntry::tunnel_available_
private

Definition at line 82 of file crypt_tunnel.h.

CryptTunnelTask* CryptTunnelEntry::tunnel_task_
private

Definition at line 84 of file crypt_tunnel.h.

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: