|
153 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::PointToPointNetDevice/MacRx", |
153 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::PointToPointNetDevice/MacRx", |
154 |
MakeCallback (&PyViz::TraceNetDevRxPointToPoint, this)); |
154 |
MakeCallback (&PyViz::TraceNetDevRxPointToPoint, this)); |
155 |
|
155 |
|
|
|
156 |
// WiMax |
156 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WimaxNetDevice/Tx", |
157 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WimaxNetDevice/Tx", |
157 |
MakeCallback (&PyViz::TraceNetDevTxWimax, this)); |
158 |
MakeCallback (&PyViz::TraceNetDevTxWimax, this)); |
158 |
|
159 |
|
159 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WimaxNetDevice/Rx", |
160 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::WimaxNetDevice/Rx", |
160 |
MakeCallback (&PyViz::TraceNetDevRxWimax, this)); |
161 |
MakeCallback (&PyViz::TraceNetDevRxWimax, this)); |
161 |
|
162 |
|
|
|
163 |
// LTE |
164 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::LteNetDevice/Tx", |
165 |
MakeCallback (&PyViz::TraceNetDevTxLte, this)); |
166 |
|
167 |
Config::Connect ("/NodeList/*/DeviceList/*/$ns3::LteNetDevice/Rx", |
168 |
MakeCallback (&PyViz::TraceNetDevRxLte, this)); |
162 |
} |
169 |
} |
163 |
|
170 |
|
164 |
void |
171 |
void |
|
820 |
TraceNetDevRxCommon (context, packet, source); |
827 |
TraceNetDevRxCommon (context, packet, source); |
821 |
} |
828 |
} |
822 |
|
829 |
|
|
|
830 |
void |
831 |
PyViz::TraceNetDevTxLte (std::string context, Ptr<const Packet> packet, Mac48Address const &destination) |
832 |
{ |
833 |
NS_LOG_FUNCTION (context); |
834 |
TraceNetDevTxCommon (context, packet, destination); |
835 |
} |
836 |
|
837 |
void |
838 |
PyViz::TraceNetDevRxLte (std::string context, Ptr<const Packet> packet, Mac48Address const &source) |
839 |
{ |
840 |
NS_LOG_FUNCTION (context); |
841 |
TraceNetDevRxCommon (context, packet, source); |
842 |
} |
823 |
|
843 |
|
824 |
// --------------------- |
844 |
// --------------------- |
825 |
|
845 |
|