Re: libpcap in Cocoa
Re: libpcap in Cocoa
- Subject: Re: libpcap in Cocoa
- From: "Todd Heberlein" <email@hidden>
- Date: Sun, 19 Aug 2001 17:14:29 -0700
- Organization: Net Squared, Inc.
>
But these are defined in pcap.h
>
>
What am I doing wrong here?
Not sure, but there may be a mismatch between the pcap package that you
grabbed the pcap.h file from and the pcap library that you are linking
against. Apple provides its own pcap library, but since they do not
include any header files, we cannot know what APIs are supported by the
library. If you are linking against it, you may have some problems.
I would recommend you actually build and install a fresh copy of pcap,
and then do #import <pcap.h>, set up the appropriate additional INCLUDE
and LIBRARY paths in your target panes to pick up your installation
paths, and include -lpcap in the target pane as well. That should pick
up your own build of the package.
I was able to link against it and read tcpdump files from a packet file.
Todd