34 #ifndef EMANE_MODELS_IEEE80211ABG_ACCESSCATEGORY_HEADER_ 35 #define EMANE_MODELS_IEEE80211ABG_ACCESSCATEGORY_HEADER_ 50 namespace IEEE80211ABG
69 IEEE80211abgDownstreamPacketQueue
queue_;
94 pNumUnicastPacketsTooLarge_{},
95 pNumUnicastBytesTooLarge_{},
96 pNumBroadcastPacketsTooLarge_{},
97 pNumBroadcastBytesTooLarge_{},
104 std::string sCategory{std::to_string(category_)};
106 pNumUnicastPacketsTooLarge_ =
107 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numUnicastPacketsTooLarge" + sCategory,
109 pNumUnicastBytesTooLarge_ =
110 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numUnicastBytesTooLarge" + sCategory,
113 pNumBroadcastPacketsTooLarge_ =
114 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numBroadcastPacketsTooLarge" + sCategory,
116 pNumBroadcastBytesTooLarge_ =
117 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numBroadcastBytesTooLarge" + sCategory,
121 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numHighWaterMark" + sCategory,
124 statisticRegistrar.
registerNumeric<std::uint32_t>(
"numHighWaterMax" + sCategory,
131 #endif //EMANE_MODELS_IEEE80211ABG_ACCESSCATEGORY_HEADER_
size_t numPacketOverFlow_
IEEE80211abgDownstreamPacketQueue queue_
StatisticNumeric< std::uint32_t > * pNumBroadcastBytesTooLarge_
StatisticNumeric< std::uint32_t > * pNumUnicastBytesTooLarge_
StatisticNumeric< std::uint32_t > * pNumBroadcastPacketsTooLarge_
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.
const std::uint16_t MAX_PACKET_SIZE
std::queue< DownstreamQueueEntry > IEEE80211abgDownstreamPacketQueue
StatisticNumeric< std::uint32_t > * pNumHighWaterMark_
StatisticNumeric< T > * registerNumeric(const std::string &sName, const StatisticProperties &properties=StatisticProperties::NONE, const std::string &sDescription="")
Defines an access category container.
void registerStatistics(StatisticRegistrar &statisticRegistrar)
std::uint16_t u16MaxPacketSize_
const std::uint8_t QUEUE_SIZE_DEFAULT
StatisticNumeric< std::uint32_t > * pNumUnicastPacketsTooLarge_
StatisticNumeric< std::uint32_t > * pNumHighWaterMax_
std::uint8_t u8MaxQueueCapacity_