I have been experimenting with ARP spoofing on my local LAN. Now, I would like to try to write in C a simple sniffer, but I have some questions:
After some investigation I think the best way is to use libcap http://man7.org/linux/man-pages/man3/libcap.3.html, which comes with good routine to call.