ADD_STAT(rxBytes, "Bytes Received"),
ADD_STAT(txPackets, "Number of Packets Transmitted"),
ADD_STAT(rxPackets, "Number of Packets Received"),
+ ADD_STAT(txBandwidth, "Transmit Bandwidth (bits/s)",
+ txBytes * Stats::constant(8) / simSeconds),
+ ADD_STAT(rxBandwidth, "Receive Bandwidth (bits/s)",
+ rxBytes * Stats::constant(8) / simSeconds),
ADD_STAT(txIpChecksums, "Number of tx IP Checksums done by device"),
ADD_STAT(rxIpChecksums, "Number of rx IP Checksums done by device"),
ADD_STAT(txTcpChecksums, "Number of tx TCP Checksums done by device"),
ADD_STAT(totBytes, "Total Bytes", txBytes + rxBytes),
ADD_STAT(totPacketRate, "Total Tranmission Rate (packets/s)",
totPackets / simSeconds),
- ADD_STAT(txBandwidth, "Transmit Bandwidth (bits/s)",
- txBytes * Stats::constant(8) / simSeconds),
- ADD_STAT(rxBandwidth, "Receive Bandwidth (bits/s)",
- rxBytes * Stats::constant(8) / simSeconds),
ADD_STAT(txPacketRate, "Packet Tranmission Rate (packets/s)",
txPackets / simSeconds),
ADD_STAT(rxPacketRate, "Packet Reception Rate (packets/s)",
Stats::Scalar txPackets;
Stats::Scalar rxPackets;
+ Stats::Formula txBandwidth;
+ Stats::Formula rxBandwidth;
+
Stats::Scalar txIpChecksums;
Stats::Scalar rxIpChecksums;
Stats::Formula totBytes;
Stats::Formula totPacketRate;
- Stats::Formula txBandwidth;
- Stats::Formula rxBandwidth;
-
Stats::Formula txPacketRate;
Stats::Formula rxPacketRate;