Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: [Wireshark-users] Problem regarding using the libpcap libraries

Date: Wed, 13 May 2009 18:19:02 +0530
Hi
Sorry I dont know whether to ask this question in this mailing list or not. Please tell me appropriate mailing list if I am at wrong place.

I am using libpcap libraries to write a basic C program to print the network interface details. So I am using the following C code
  dev = pcap_lookupdev(errbuf);
  /* error checking */
  if(dev == NULL)
  {
   printf("%s\n",errbuf);
   exit(1);
  }
 
But it is showing an ERROR message - "no suitable device found"

But I do have a network interface since I am able to access Internet on my Linux Machine. I am running the app in normal user mode as I dont have the ROOT user permission.

So anyone can tell me why I am getting "no suitable device found" eventhough I have it.
 
---------------------------------------------------------------------------------------------------
Thanks & Regards

www.codingfreak.blogspot.com

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com