title: Capture Wifi packets using libpcap
body: <p>I'm using libpcap to write a sniffer program .. For starters i referred to tutorials on the net from various programmer on how to write Basic Sniffer program using Libpcap .. which captures Packets only from the Ethernet connection ... </p>
  
  <p>And i've been searching a lot on How to write a program using libpcap to capture packets from the wifi connection .... but i'm not getting anything which can help me ...</p>
  
  <p>Do i need to do some settings in my system to make sure that libpcap can capture the packet...because the method <code>pcap_lookupdev</code> points to the default device which is <code>eth0</code> </p>