Returns a structure containing the following fields:
outOctets
The number of octets/bytes sent out the output hook.
outFrames
The number of frames/packets sent out the output hook.
queueOctets
The number of octets queued from the input hook.
queueFrames
The number of frames queued from the input hook.
startTime
The time the last start message was received.
endTime
The time the last end message was received or the output packet count was reached.
elapsedTime
Either endTime - startTime or current time - startTime.
NGM_SOURCE_CLR_STATS(clrstats)
Clears and resets the statistics returned by getstats (except queueOctets and queueFrames).
NGM_SOURCE_GETCLR_STATS(getclrstats)
As getstats but clears the statistics at the same time.
NGM_SOURCE_START(start)
This message requires a single .Vt uint64_t parameter which is the number of packets to send before stopping. Node starts sending the queued packets out the output hook. The output hook must be connected and node must have interface configured.
NGM_SOURCE_STOP(stop)
Stops the node if it is active.
NGM_SOURCE_CLR_DATA(clrdata)
Clears the packets queued from the input hook.
NGM_SOURCE_SETIFACE(setiface)
This message requires the name of the interface to be configured as an argument.