OpenSDN source code
|
#include <flow_entry.h>
Public Types | |
typedef std::set< PortCacheEntry > | PortCacheEntryList |
typedef std::map< uint16_t, PortCacheEntryList > | PortCacheTree |
Public Member Functions | |
PortCacheTable (PortTable *table) | |
~PortCacheTable () | |
void | Add (const PortCacheEntry &cache_entry) |
void | Delete (const PortCacheEntry &cache_entry) |
const PortCacheEntry * | Find (const FlowKey &key) const |
void | MarkDelete (const PortCacheEntry &cache_entry) |
void | set_timeout (uint64_t timeout) |
Static Public Attributes | |
static const uint64_t | kCacheAging = 1000 |
static const uint64_t | kAgingTimeout = 1000 * 1000 * 600 |
Private Member Functions | |
void | StartTimer () |
void | StopTimer () |
bool | Age () |
Private Attributes | |
PortCacheTree | tree_ |
PortTable * | port_table_ |
Timer * | timer_ |
uint16_t | hash_ |
uint64_t | timeout_ |
Definition at line 977 of file flow_entry.h.
typedef std::set<PortCacheEntry> PortCacheTable::PortCacheEntryList |
Definition at line 982 of file flow_entry.h.
typedef std::map<uint16_t , PortCacheEntryList> PortCacheTable::PortCacheTree |
Definition at line 983 of file flow_entry.h.
PortCacheTable::PortCacheTable | ( | PortTable * | table | ) |
PortCacheTable::~PortCacheTable | ( | ) |
void PortCacheTable::Add | ( | const PortCacheEntry & | cache_entry | ) |
|
private |
void PortCacheTable::Delete | ( | const PortCacheEntry & | cache_entry | ) |
const PortCacheEntry * PortCacheTable::Find | ( | const FlowKey & | key | ) | const |
void PortCacheTable::MarkDelete | ( | const PortCacheEntry & | cache_entry | ) |
|
inline |
Definition at line 993 of file flow_entry.h.
|
private |
|
private |
|
private |
Definition at line 1005 of file flow_entry.h.
|
static |
Definition at line 980 of file flow_entry.h.
|
static |
Definition at line 979 of file flow_entry.h.
|
private |
Definition at line 1003 of file flow_entry.h.
|
private |
Definition at line 1006 of file flow_entry.h.
|
private |
Definition at line 1004 of file flow_entry.h.
|
private |
Definition at line 1002 of file flow_entry.h.