|
|
| 818 |
void |
818 |
void |
| 819 |
WifiPhyStats::PhyTxDrop (std::string context, Ptr<const Packet> packet) |
819 |
WifiPhyStats::PhyTxDrop (std::string context, Ptr<const Packet> packet) |
| 820 |
{ |
820 |
{ |
| 821 |
NS_LOG_UNCOND ("PHY Tx Drop"); |
821 |
//NS_LOG_UNCOND ("PHY Tx Drop"); |
| 822 |
} |
822 |
} |
| 823 |
|
823 |
|
| 824 |
void |
824 |
void |
| 825 |
WifiPhyStats::PhyRxDrop (std::string context, Ptr<const Packet> packet) |
825 |
WifiPhyStats::PhyRxDrop (std::string context, Ptr<const Packet> packet) |
| 826 |
{ |
826 |
{ |
| 827 |
NS_LOG_UNCOND ("PHY Rx Drop"); |
827 |
//NS_LOG_UNCOND ("PHY Rx Drop"); |
| 828 |
} |
828 |
} |
| 829 |
|
829 |
|
| 830 |
uint32_t |
830 |
uint32_t |
|
|
| 1605 |
// which is used to determine the total amount of |
1605 |
// which is used to determine the total amount of |
| 1606 |
// data transmitted, and then used to calculate |
1606 |
// data transmitted, and then used to calculate |
| 1607 |
// the MAC/PHY overhead beyond the app-data |
1607 |
// the MAC/PHY overhead beyond the app-data |
| 1608 |
Config::Connect ("/NodeList/*/DeviceList/*/Phy/State/Tx", MakeCallback (&WifiPhyStats::PhyTxTrace, m_wifiPhyStats)); |
1608 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/State/Tx", MakeCallback (&WifiPhyStats::PhyTxTrace, m_wifiPhyStats)); |
| 1609 |
// TxDrop, RxDrop not working yet. Not sure what I'm doing wrong. |
1609 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/PhyTxDrop", MakeCallback (&WifiPhyStats::PhyTxDrop, m_wifiPhyStats)); |
| 1610 |
Config::Connect ("/NodeList/*/DeviceList/*/ns3::WifiNetDevice/Phy/PhyTxDrop", MakeCallback (&WifiPhyStats::PhyTxDrop, m_wifiPhyStats)); |
1610 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/Phy/PhyRxDrop", MakeCallback (&WifiPhyStats::PhyRxDrop, m_wifiPhyStats)); |
| 1611 |
Config::Connect ("/NodeList/*/DeviceList/*/ns3::WifiNetDevice/Phy/PhyRxDrop", MakeCallback (&WifiPhyStats::PhyRxDrop, m_wifiPhyStats)); |
1611 |
|
|
|
1612 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WaveNetDevice/PhyEntities/*/State/Tx", MakeCallback (&WifiPhyStats::PhyTxTrace, m_wifiPhyStats)); |
| 1613 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WaveNetDevice/PhyEntities/*/PhyRxDrop", MakeCallback (&WifiPhyStats::PhyRxDrop, m_wifiPhyStats)); |
| 1614 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WaveNetDevice/PhyEntities/*/PhyRxDrop", MakeCallback (&WifiPhyStats::PhyRxDrop, m_wifiPhyStats)); |
| 1612 |
} |
1615 |
} |
| 1613 |
|
1616 |
|
| 1614 |
void |
1617 |
void |