• 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
Re: libpcap in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: libpcap in Cocoa
      • From: Ivan Myrvold <email@hidden>
References: 
 >libpcap in Cocoa (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: Re: WTF? How can this work?
  • Next by Date: fileAttributesAtPath, NSFileSize problems
  • Previous by thread: libpcap in Cocoa
  • Next by thread: Re: libpcap in Cocoa
  • Index(es):
    • Date
    • Thread