I see this rather weird behavior with V4Ping application that I can't explain. the Here's the scenario:
- Connected two nodes by PointToPointHelper (like the regular examples)
- Set up IP addresses. The two nodes have different network addresses (10.1.1.3 and 10.1.2.15)
- Installed the V4Ping on the node with 10.1.1.3, and started pinging 10.1.2.15.
- EnablePcapAll on the PointToPointHelper
pcap file is empty after running this..
If I use a remote IP on the same network as the sender's IP (10.1.1.x), then the pcap file is filled with entries. Ping requests are sent (and response is saved if an existing IP is pinged).
However, if the remote IP is not on the same network as the sender's, then pcap is empty.
I tried all the above variations with Ipv4GlobalRoutingHelper::PopulateRoutingTables();. Having all routing tables populated, packets are saved into the pcap. I can see the requests sent (and responses as well if an existing IP is pinged) in the pcap file.
Why is this? Am I doing anything wrong?