Experience coding with libpcap on OSX
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.