Hi all,
I have a simple WiFi scenario that I try to modify in order to make it as generic as possible (for dynamic source/dst selection etc).
I have used the PacketSink Rx trace source to capture the received packets.
I notice that this trace is not always fired when I install the packet sink application on selected nodes (the sinks), but when I install it on ALL nodes, it fires.
This is how I capture the PacketSink trace which should work for ALL nodes.
Config::ConnectWithoutContext("/NodeList/*/ApplicationList/*/$ns3::PacketSink/Rx",MakeCallback (&ReceivePacket));
In both cases, FlowMonitor gives the same results, meaning that the packets are received by the sinks.
When I enable the Logs for PacketSink, I see the applications are created, started but no packet received.
I attach the code and I have identified the position of the 'bug' (lines 208-209). That's where the two options to install the packetSink on all nodes or only the sinks is located.
Any ideas why this problem occurs?
Best Regards,
Konstantinos