I am trying to inject a packet into the network using raw sockets, but somehow can’t seem to get a receiver to capture this packet. How do i check whether the packet is being dropped by the linux network stack? Could someone point out some tools for doing this?
Advertisement
Answer
I don’t know about accessing the network stack directly (not saying it’s impossible, just that I don’t know how to do it if you can), but you could probably use Wireshark or something similar to see if the NIC on the receiving end is receiving the packets. You could also use it on the sending end to check if the packets are being sent out properly (or are actually being sent out in the first place, if that’s the issue), as it allows you to examine the fields/etc. of individual packets. Quite a useful tool, really.
Note that the website doesn’t have direct downloads for Linux builds, but does list third-party packages for various Linux distros.