ns-3
ns3::ofi::Stats Class Reference

List of all members.

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)
int DoInit (const void *body, int body_len, void **state)
 Prepares to dump some kind of statistics on the connected OpenFlowSwitchNetDevice.
int DoDump (Ptr< OpenFlowSwitchNetDevice > swtch, void *state, ofpbuf *buffer)
 Appends statistics for OpenFlowSwitchNetDevice to 'buffer'.
void DoCleanup (void *state)
 Cleans any state created by the init or dump functions.

Public Attributes

ofp_stats_types type

Member Function Documentation

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:
stateState information to clear.
int ns3::ofi::Stats::DoDump ( Ptr< OpenFlowSwitchNetDevice swtch,
void *  state,
ofpbuf *  buffer 
)

Appends statistics for OpenFlowSwitchNetDevice to 'buffer'.

Parameters:
swtchThe OpenFlowSwitchNetDevice this callback is associated with.
stateState information.
bufferBuffer to append stats reply to.
Returns:
1 if it should be called again later with another buffer, 0 if it is done, or a negative errno value on failure.
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:
bodyBody member of the struct ofp_stats_request.
body_lenLength of the body member.
stateState information.
Returns:
0 if successful, otherwise a negative error code.

The documentation for this class was generated from the following file: