Find the answer to your Linux question:
Results 1 to 4 of 4
Hi I'm using fedora 10.When I try to include pcap.h header file in my program the compiler throws an error saying No such file or directory.Also when I try man ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    10

    Post Problem using pcap.h

    Hi I'm using fedora 10.When I try to include pcap.h header file in my program the compiler throws an error saying No such file or directory.Also when I try man pcap.There is no man page.What could be the problem .I'm sure that libpcap is installed on my box..Thanx in advance

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You need the headers which are in the development package, libpcap-devel.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    10
    Quote Originally Posted by Rubberman View Post
    You need the headers which are in the development package, libpcap-devel.
    Yup its done now.Thanks.Could you please tell me if libpcap provides any facility to capture packets and display information in graphical form or anything of that sort.Thanks

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by en_7123 View Post
    Yup its done now.Thanks.Could you please tell me if libpcap provides any facility to capture packets and display information in graphical form or anything of that sort.Thanks
    Capture, yes. Display, no. However, you can do whatever you want with the packets received in the callback function you register with pcap_dispatch() or pcap_loop().
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...