33 #ifndef EMANEUTILSCOMMONLAYERSTATISTICS_HEADER_ 34 #define EMANEUTILSCOMMONLAYERSTATISTICS_HEADER_ 65 const std::string & sInstance = {});
117 size_t dropCode = {},
118 bool bSelfGenerated = {});
121 class Implementation;
122 std::unique_ptr<Implementation> pImpl_;
131 #endif // EMANEUTILSCOMMONLAYERSTATISTICS_HEADER_ A Packet class that allows upstream processing to strip layer headers as the packet travels up the st...
void processOutbound(const UpstreamPacket &pkt, Microseconds delay, size_t dropCode={})
Common NEM layer statistics and drop reason tables.
void registerStatistics(StatisticRegistrar &statisticRegistrar)
The StatisticRegistrar allows NEM layers to register statistics and statistic tables. Statistics and Statistic tables are owned by the emulator framework and a borrowed reference is returned to the registering NEM layer.
std::vector< std::string > StatisticTableLabels
Specialized packet the allows downstream processing to add layer specific headers as the packet trave...
std::chrono::microseconds Microseconds
void processInbound(const UpstreamPacket &pkt)
CommonLayerStatistics(const StatisticTableLabels &unicastDropTableLabels, const StatisticTableLabels &broadcastDropTableLabels={}, const std::string &sInstance={})