[Winpcap-users] Newbie facing problem in setting filter whilerunning pf.exe

Gianluca Varenni gianluca.varenni at cacetech.com
Thu Mar 13 15:50:27 GMT 2008


Cristina,

you probably forgot to define "WPCAP" and "HAVE_REMOTE" before including pcap.h or within the project properties.

The easiest way is perhaps this

#define WPCAP
#define HAVE_REMOTE
#include <pcap.h>

Have a nice day
GV
  ----- Original Message ----- 
  From: Cristina Ruxandra Ionescu 
  To: winpcap-users at winpcap.org 
  Sent: Thursday, March 13, 2008 1:46 AM
  Subject: Re: [Winpcap-users] Newbie facing problem in setting filter whilerunning pf.exe


  Hello everyone,

    I have managed to solve my problem the last time you helped me, but now I have stmbled accross another one. I have Winpcap installed on my computer the same time as Wireshark (ex Ethereal). I work in Visual C++ Express 2008 and whn I compile my small sniffer which uses pcap_open (and pcap_next and pcap_sendpacket, but they are fine for now ), I am left with one warning 

  >>...warning C4013: 'pcap_open' undefined; assuming extern returning int

  I have had other silly warnings like scanf for a while telling me to define #define _CRT_SECURE_NO_DEPRECATE, because of C compiler changes I believe, but this warning , I do not know how to get rid of...can you help me?

  thanks in advance,


  Cri


------------------------------------------------------------------------------
  Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.


------------------------------------------------------------------------------


  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20080313/b6139777/attachment.htm


More information about the Winpcap-users mailing list