I saw a "packet capturing tutorial" regarding the Libpcap from: URL:http://www.thegeekstuff.com/2012/10/packet-sniffing-using-libpcap/
A great one. But as my C Lab session I need to implement same in my college lab . So we set up Ubuntu 12.04 LTS over windows 7.
What are the next items that we need to run the sniffing program over GCC ? Is libpcap installed as a new thing in gcc or can include in any other way ?
Please advise with a reply and an improved code .