OpenFlow statistics.
More...
#include "openflow-interface.h"
|
ofp_stats_types | type |
| Status type.
|
|
|
int | DescStatsDump (void *state, ofpbuf *buffer) |
| Dumps the stats description.
|
|
|
int | FlowStatsInit (const void *body, int body_len, void **state) |
| Initialize the stats.
|
|
int | AggregateStatsInit (const void *body, int body_len, void **state) |
| Initialize the stats.
|
|
int | PortStatsInit (const void *body, int body_len, void **state) |
| Initialize the stats.
|
|
|
int | FlowStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, FlowStatsState *state, ofpbuf *buffer) |
| Dump the stats.
|
|
int | AggregateStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, ofp_aggregate_stats_request *state, ofpbuf *buffer) |
| Dump the stats.
|
|
int | TableStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, void *state, ofpbuf *buffer) |
| Dump the stats.
|
|
int | PortStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, PortStatsState *state, ofpbuf *buffer) |
| Dump the stats.
|
|
int | PortTableStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, void *state, ofpbuf *buffer) |
| Dump the stats.
|
|
OpenFlow statistics.
Definition at line 147 of file openflow-interface.h.
◆ Stats()
ns3::ofi::Stats::Stats |
( |
ofp_stats_types |
_type, |
|
|
size_t |
body_len |
|
) |
| |
Constructor.
- Parameters
-
_type | OpenFlow stats type. |
body_len | Stat body length. |
◆ AggregateStatsDump()
int ns3::ofi::Stats::AggregateStatsDump |
( |
Ptr< OpenFlowSwitchNetDevice > |
dp, |
|
|
ofp_aggregate_stats_request * |
state, |
|
|
ofpbuf * |
buffer |
|
) |
| |
|
private |
Dump the stats.
- Parameters
-
| dp | OpenFlow NetDevice. |
| state | State. |
[out] | buffer | output buffer. |
- Returns
- 0 if successful
◆ AggregateStatsInit()
int ns3::ofi::Stats::AggregateStatsInit |
( |
const void * |
body, |
|
|
int |
body_len, |
|
|
void ** |
state |
|
) |
| |
|
private |
Initialize the stats.
- Parameters
-
body | Body member of the struct ofp_stats_request. |
body_len | Length of the body member. |
state | State information. |
- Returns
- 0 if successful, otherwise a negative error code.
◆ DescStatsDump()
int ns3::ofi::Stats::DescStatsDump |
( |
void * |
state, |
|
|
ofpbuf * |
buffer |
|
) |
| |
|
private |
Dumps the stats description.
- Parameters
-
[in] | state | The state. |
[out] | buffer | Output buffer. |
- Returns
- zero on success
◆ DoCleanup()
void ns3::ofi::Stats::DoCleanup |
( |
void * |
state | ) |
|
Cleans any state created by the init or dump functions.
May not be implemented if no cleanup is required.
- Parameters
-
state | State information to clear. |
◆ DoDump()
Appends statistics for OpenFlowSwitchNetDevice to 'buffer'.
- Parameters
-
- Returns
- 1 if it should be called again later with another buffer, 0 if it is done, or a negative errno value on failure.
◆ DoInit()
int ns3::ofi::Stats::DoInit |
( |
const void * |
body, |
|
|
int |
body_len, |
|
|
void ** |
state |
|
) |
| |
Prepares to dump some kind of statistics on the connected OpenFlowSwitchNetDevice.
- Parameters
-
body | Body member of the struct ofp_stats_request. |
body_len | Length of the body member. |
state | State information. |
- Returns
- 0 if successful, otherwise a negative error code.
◆ FlowStatsDump()
Dump the stats.
- Parameters
-
| dp | OpenFlow NetDevice. |
| state | State. |
[out] | buffer | output buffer. |
- Returns
- 0 if successful
◆ FlowStatsInit()
int ns3::ofi::Stats::FlowStatsInit |
( |
const void * |
body, |
|
|
int |
body_len, |
|
|
void ** |
state |
|
) |
| |
|
private |
Initialize the stats.
- Parameters
-
body | Body member of the struct ofp_stats_request. |
body_len | Length of the body member. |
state | State information. |
- Returns
- 0 if successful, otherwise a negative error code.
◆ PortStatsDump()
Dump the stats.
- Parameters
-
| dp | OpenFlow NetDevice. |
| state | State. |
[out] | buffer | output buffer. |
- Returns
- 0 if successful
◆ PortStatsInit()
int ns3::ofi::Stats::PortStatsInit |
( |
const void * |
body, |
|
|
int |
body_len, |
|
|
void ** |
state |
|
) |
| |
|
private |
Initialize the stats.
- Parameters
-
body | Body member of the struct ofp_stats_request. |
body_len | Length of the body member. |
state | State information. |
- Returns
- 0 if successful, otherwise a negative error code.
◆ PortTableStatsDump()
Dump the stats.
- Parameters
-
| dp | OpenFlow NetDevice. |
| state | State. |
[out] | buffer | output buffer. |
- Returns
- 0 if successful
◆ TableStatsDump()
Dump the stats.
- Parameters
-
| dp | OpenFlow NetDevice. |
| state | State. |
[out] | buffer | output buffer. |
- Returns
- 0 if successful
◆ AggregateDumpCallback
int(* ns3::ofi::Stats::AggregateDumpCallback) (sw_flow *flow, void *state) |
|
private |
◆ FlowDumpCallback
int(* ns3::ofi::Stats::FlowDumpCallback) (sw_flow *flow, void *state) |
|
private |
◆ type
ofp_stats_types ns3::ofi::Stats::type |
The documentation for this class was generated from the following file: