Implemented the RAW socket in my code for sniffing the data in the network. It was able to receive the data. But only receives the data that is coming for the same machine. But while checking the same in wireshark, there is so much of data. It seems in my application not receiving all the data that I needed.
Is there any configuration change needs to be done in the socket flags?
Here is the scenario:
- My machine is A
- Another machine B
- Server machine C
I just want to see the communication between B and C