• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Experience coding with libpcap on OSX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Experience coding with libpcap on OSX


  • Subject: Experience coding with libpcap on OSX
  • From: Ray <email@hidden>
  • Date: Wed, 14 Apr 2004 06:47:07 -0400

A couple of questions that google and mooter couldn't solve ---

Using pcap_loop on OSX panther, I always get a segfault, now before you automatically assume its my code I have to say it works fine if I use pcap_next instead. The reason to use one over the other maybe left to personal preference but the pcap_loop allows it self to be better used later in the code. Just curious if anyone knew why this occurs and or had similar experience.

Also setting the timeout value to -1 in the pcap_open_live function cause anything from bus error to segfaults. Has anyone beat this issue as well?

Third the netinet/ip.h header file will not compile on my system when added as an include header file yet it is the exact same file found on linux systems. Anyone encounter or have a workround for this issue as well?

Simply put if anyone has had any success using libpcap in their code please send me an email offline telling me what kind of issues/errors you hit and how you worked around them.


Raymond Brown
www.silenttrace.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: IsOpenTransportInited
  • Next by Date: Re: IsOpenTransportInited
  • Previous by thread: Re: IsOpenTransportInited
  • Next by thread: Prefork, Perchild, Worker, Threadpool, Leader
  • Index(es):
    • Date
    • Thread