OpenSDN source code
flow_export_info.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
#ifndef __AGENT_FLOW_EXPORT_INFO_H__
6
#define __AGENT_FLOW_EXPORT_INFO_H__
7
8
#include <
pkt/flow_entry.h
>
9
#include <
filter/acl.h
>
10
11
class
FlowExportInfo
:
public
boost::intrusive::list_base_hook<> {
12
public
:
13
FlowExportInfo
();
14
FlowExportInfo
(
const
FlowEntryPtr
&fe, uint64_t setup_time);
15
FlowExportInfo
(
const
FlowEntryPtr
&fe);
16
~FlowExportInfo
() {}
17
18
FlowEntry
*
flow
()
const
{
return
flow_
.get(); }
19
FlowEntry
*
reverse_flow
()
const
;
20
uint64_t
teardown_time
()
const
{
return
teardown_time_
; }
21
void
set_teardown_time
(uint64_t time) {
teardown_time_
= time; }
22
uint64_t
last_modified_time
()
const
{
return
last_modified_time_
; }
23
void
set_last_modified_time
(uint64_t time) {
last_modified_time_
= time; }
24
25
uint64_t
bytes
()
const
{
return
bytes_
; }
26
void
set_bytes
(uint64_t value) {
bytes_
= value; }
27
uint64_t
packets
()
const
{
return
packets_
; }
28
void
set_packets
(uint64_t value) {
packets_
= value; }
29
30
void
set_delete_enqueue_time
(uint64_t value) {
delete_enqueue_time_
= value; }
31
uint64_t
delete_enqueue_time
()
const
{
return
delete_enqueue_time_
; }
32
void
set_evict_enqueue_time
(uint64_t value) {
evict_enqueue_time_
= value; }
33
uint64_t
evict_enqueue_time
()
const
{
return
evict_enqueue_time_
; }
34
35
uint8_t
gen_id
()
const
{
return
gen_id_
; }
36
void
set_gen_id
(uint8_t value) {
gen_id_
= value; }
37
uint32_t
flow_handle
()
const
{
return
flow_handle_
; }
38
void
set_flow_handle
(uint32_t value) {
flow_handle_
= value; }
39
const
boost::uuids::uuid
&
uuid
()
const
{
return
uuid_
; }
40
void
CopyFlowInfo
(
FlowEntry
*fe);
41
void
ResetStats
();
42
43
private
:
44
FlowEntryPtr
flow_
;
45
uint64_t
teardown_time_
;
46
uint64_t
last_modified_time_
;
//used for aging
47
uint64_t
bytes_
;
48
uint64_t
packets_
;
49
uint64_t
delete_enqueue_time_
;
50
uint64_t
evict_enqueue_time_
;
51
uint8_t
gen_id_
;
52
uint32_t
flow_handle_
;
53
boost::uuids::uuid
uuid_
;
54
};
55
56
typedef
boost::intrusive::list<FlowExportInfo>
FlowExportInfoList
;
57
#endif
// __AGENT_FLOW_EXPORT_INFO_H__
acl.h
FlowEntry
Definition:
flow_entry.h:461
FlowExportInfo
Definition:
flow_export_info.h:11
FlowExportInfo::uuid_
boost::uuids::uuid uuid_
Definition:
flow_export_info.h:53
FlowExportInfo::set_teardown_time
void set_teardown_time(uint64_t time)
Definition:
flow_export_info.h:21
FlowExportInfo::evict_enqueue_time_
uint64_t evict_enqueue_time_
Definition:
flow_export_info.h:50
FlowExportInfo::delete_enqueue_time_
uint64_t delete_enqueue_time_
Definition:
flow_export_info.h:49
FlowExportInfo::uuid
const boost::uuids::uuid & uuid() const
Definition:
flow_export_info.h:39
FlowExportInfo::set_last_modified_time
void set_last_modified_time(uint64_t time)
Definition:
flow_export_info.h:23
FlowExportInfo::delete_enqueue_time
uint64_t delete_enqueue_time() const
Definition:
flow_export_info.h:31
FlowExportInfo::flow_
FlowEntryPtr flow_
Definition:
flow_export_info.h:44
FlowExportInfo::~FlowExportInfo
~FlowExportInfo()
Definition:
flow_export_info.h:16
FlowExportInfo::set_gen_id
void set_gen_id(uint8_t value)
Definition:
flow_export_info.h:36
FlowExportInfo::FlowExportInfo
FlowExportInfo()
Definition:
flow_export_info.cc:4
FlowExportInfo::reverse_flow
FlowEntry * reverse_flow() const
Definition:
flow_export_info.cc:29
FlowExportInfo::flow
FlowEntry * flow() const
Definition:
flow_export_info.h:18
FlowExportInfo::set_delete_enqueue_time
void set_delete_enqueue_time(uint64_t value)
Definition:
flow_export_info.h:30
FlowExportInfo::last_modified_time_
uint64_t last_modified_time_
Definition:
flow_export_info.h:46
FlowExportInfo::packets_
uint64_t packets_
Definition:
flow_export_info.h:48
FlowExportInfo::gen_id
uint8_t gen_id() const
Definition:
flow_export_info.h:35
FlowExportInfo::bytes_
uint64_t bytes_
Definition:
flow_export_info.h:47
FlowExportInfo::flow_handle
uint32_t flow_handle() const
Definition:
flow_export_info.h:37
FlowExportInfo::CopyFlowInfo
void CopyFlowInfo(FlowEntry *fe)
Definition:
flow_export_info.cc:37
FlowExportInfo::last_modified_time
uint64_t last_modified_time() const
Definition:
flow_export_info.h:22
FlowExportInfo::evict_enqueue_time
uint64_t evict_enqueue_time() const
Definition:
flow_export_info.h:33
FlowExportInfo::packets
uint64_t packets() const
Definition:
flow_export_info.h:27
FlowExportInfo::teardown_time
uint64_t teardown_time() const
Definition:
flow_export_info.h:20
FlowExportInfo::set_packets
void set_packets(uint64_t value)
Definition:
flow_export_info.h:28
FlowExportInfo::set_evict_enqueue_time
void set_evict_enqueue_time(uint64_t value)
Definition:
flow_export_info.h:32
FlowExportInfo::set_flow_handle
void set_flow_handle(uint32_t value)
Definition:
flow_export_info.h:38
FlowExportInfo::teardown_time_
uint64_t teardown_time_
Definition:
flow_export_info.h:45
FlowExportInfo::bytes
uint64_t bytes() const
Definition:
flow_export_info.h:25
FlowExportInfo::gen_id_
uint8_t gen_id_
Definition:
flow_export_info.h:51
FlowExportInfo::ResetStats
void ResetStats()
Definition:
flow_export_info.cc:43
FlowExportInfo::flow_handle_
uint32_t flow_handle_
Definition:
flow_export_info.h:52
FlowExportInfo::set_bytes
void set_bytes(uint64_t value)
Definition:
flow_export_info.h:26
flow_entry.h
FlowEntryPtr
boost::intrusive_ptr< FlowEntry > FlowEntryPtr
Definition:
flow_entry.h:126
FlowExportInfoList
boost::intrusive::list< FlowExportInfo > FlowExportInfoList
Definition:
flow_export_info.h:56
uuid
boost::uuids::uuid uuid
Definition:
vnsw/agent/filter/policy.h:12
contrail
controller
src
vnsw
agent
vrouter
flow_stats
flow_export_info.h
Generated by
1.9.1