#include <openflow-interface.h>
Classes | |
| struct | FlowStatsState |
| State of the FlowStats request/reply. More... | |
| struct | PortStatsState |
| State of the PortStats request/reply. More... | |
Public Member Functions | |
| Stats (ofp_stats_types _type, size_t body_len) | |
| void | DoCleanup (void *state) |
| Cleans any state created by the init or dump functions. More... | |
| int | DoDump (Ptr< OpenFlowSwitchNetDevice > swtch, void *state, ofpbuf *buffer) |
| Appends statistics for OpenFlowSwitchNetDevice to 'buffer'. More... | |
| int | DoInit (const void *body, int body_len, void **state) |
| Prepares to dump some kind of statistics on the connected OpenFlowSwitchNetDevice. More... | |
Public Attributes | |
| ofp_stats_types | type |
Private Member Functions | |
| int | AggregateStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, ofp_aggregate_stats_request *s, ofpbuf *buffer) |
| int | AggregateStatsInit (const void *body, int body_len, void **state) |
| int | DescStatsDump (void *state, ofpbuf *buffer) |
| int | FlowStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, FlowStatsState *s, ofpbuf *buffer) |
| int | FlowStatsInit (const void *body, int body_len, void **state) |
| int | PortStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, PortStatsState *s, ofpbuf *buffer) |
| int | PortStatsInit (const void *body, int body_len, void **state) |
| int | PortTableStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, void *state, ofpbuf *buffer) |
| int | TableStatsDump (Ptr< OpenFlowSwitchNetDevice > dp, void *state, ofpbuf *buffer) |
Private Attributes | |
| int(* | AggregateDumpCallback )(sw_flow *flow, void *state) |
| int(* | FlowDumpCallback )(sw_flow *flow, void *state) |
Definition at line 145 of file openflow-interface.h.
| ns3::ofi::Stats::Stats | ( | ofp_stats_types | _type, |
| size_t | body_len | ||
| ) |
|
private |
|
private |
|
private |
| 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.
| state | State information to clear. |
| int ns3::ofi::Stats::DoDump | ( | Ptr< OpenFlowSwitchNetDevice > | swtch, |
| void * | state, | ||
| ofpbuf * | buffer | ||
| ) |
Appends statistics for OpenFlowSwitchNetDevice to 'buffer'.
| swtch | The OpenFlowSwitchNetDevice this callback is associated with. |
| state | State information. |
| buffer | Buffer to append stats reply to. |
| int ns3::ofi::Stats::DoInit | ( | const void * | body, |
| int | body_len, | ||
| void ** | state | ||
| ) |
Prepares to dump some kind of statistics on the connected OpenFlowSwitchNetDevice.
| body | Body member of the struct ofp_stats_request. |
| body_len | Length of the body member. |
| state | State information. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 210 of file openflow-interface.h.
|
private |
Definition at line 206 of file openflow-interface.h.
| ofp_stats_types ns3::ofi::Stats::type |
Definition at line 201 of file openflow-interface.h.