Re: [WinPcap-users] GNUMake is not working for 3.1

2004-05-05 Thread Andrea Talucci
Hi all,
I also noted that pcap_open is missing in pcap.h, resulting in a warning 
while compiling (with VS6); have I missed some include / define ?

Andrea
Gianluca Varenni wrote:
- Original Message - 
From: Alex Narinsky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 03, 2004 11:01 PM
Subject: [WinPcap-users] GNUMake is not working for 3.1


The directories inside examples contain the workspace file for VC++ and
GNUMake for gcc.  VC++ compiles projects fine.  GNUMake results in
errors.
For example, even if I additionally specify -DWPCAP -DHAVE_REMOTE in the
gcc flags I am still getting:
/cygdrive/c/wpdpack_3_1/WpdPack/Examples/pcap_filter/pcap_filter.c:95:
undefined reference to `_pcap_open'
GNU Make in 3.0 works fine

Hi.
This is a known problem with the examples and cygwin: the lib file for
cygwin (libwpcap.a) does not export pcap_open (together with all the stuff
related to remote capture, i.e. code under #define HAVE_REMOTE), because
cygwin does not support some new socket APIs used by the wpcap.dll code
(getnameinfo and gai_strerror)I don't know if they have added it in the last
month or so, I haven't checked. As a consequence, gcc fails to link those
examples (the examples do compile under VC6).
WinPcap 3.0 did not have such problems because the example did not make use
of pcap_open.
Have a nice day
GV


Thank you for feedback
Alex Narinsky


==
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
==



==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/
 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==


==
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use 
mailto: [EMAIL PROTECTED]
==


RE: [WinPcap-users] GNUMake is not working for 3.1

2004-05-05 Thread Fulvio Risso
You need to have the #define HAVE_REMOTE switch enabled for compiling the
pcap_open().
Sorry for this pain, but it is just to keep compatibility with libpcap.

fulvio

 -Original Message-
 From: Andrea Talucci [mailto:[EMAIL PROTECTED]
 Sent: mercoledi 5 maggio 2004 14.26
 To: [EMAIL PROTECTED]
 Subject: Re: [WinPcap-users] GNUMake is not working for 3.1


 Hi all,
 I also noted that pcap_open is missing in pcap.h, resulting in a warning
 while compiling (with VS6); have I missed some include / define ?

 Andrea

 Gianluca Varenni wrote:
  - Original Message -
  From: Alex Narinsky [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, May 03, 2004 11:01 PM
  Subject: [WinPcap-users] GNUMake is not working for 3.1
 
 
 
 The directories inside examples contain the workspace file for VC++ and
 GNUMake for gcc.  VC++ compiles projects fine.  GNUMake results in
 errors.
 
 For example, even if I additionally specify -DWPCAP -DHAVE_REMOTE in the
 gcc flags I am still getting:
 /cygdrive/c/wpdpack_3_1/WpdPack/Examples/pcap_filter/pcap_filter.c:95:
 undefined reference to `_pcap_open'
 
 GNU Make in 3.0 works fine
 
 
  Hi.
 
  This is a known problem with the examples and cygwin: the lib file for
  cygwin (libwpcap.a) does not export pcap_open (together with
 all the stuff
  related to remote capture, i.e. code under #define HAVE_REMOTE), because
  cygwin does not support some new socket APIs used by the wpcap.dll code
  (getnameinfo and gai_strerror)I don't know if they have added
 it in the last
  month or so, I haven't checked. As a consequence, gcc fails to
 link those
  examples (the examples do compile under VC6).
 
  WinPcap 3.0 did not have such problems because the example did
 not make use
  of pcap_open.
 
  Have a nice day
  GV
 
 
 
 
 Thank you for feedback
 
 Alex Narinsky
 
 
 
 
 
 
 ==
  This is the WinPcap users list. It is archived at
  http://www.mail-archive.com/[EMAIL PROTECTED]/
 
  To unsubscribe use
  mailto: [EMAIL PROTECTED]
 ==
 
 
 
 
 
 
 
  ==
   This is the WinPcap users list. It is archived at
   http://www.mail-archive.com/[EMAIL PROTECTED]/
 
   To unsubscribe use
   mailto: [EMAIL PROTECTED]
  ==
 


 ==
  This is the WinPcap users list. It is archived at
  http://www.mail-archive.com/[EMAIL PROTECTED]/

  To unsubscribe use
  mailto: [EMAIL PROTECTED]
 ==



==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==


[WinPcap-users] combining winpcap and STL together with a GNU compiler

2004-05-05 Thread Alex Narinsky
Thank you for your responses.  Yes, 3.0 examples work fine with a GNU
compiler.

However, I have a problem combining winpcap and STL together with a GNU
compiler,

At present the GNUmakefile contains the -mno-cygwin option for a
container.  With this option I cannot use STL (for example the string
class).  If I do not use this option I am getting a lot of definition
conflicts in compilation (for example with pthread).  

On Visual C++ (.NET) I compiled and run pcap and STL together.   Is it
possible with a GNU C++ compiler?

Thank you

-Original Message-
From: Andrea Talucci [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 05, 2004 8:26 AM
To: [EMAIL PROTECTED]
Subject: [SPAM] Re: [WinPcap-users] GNUMake is not working for 3.1

Hi all,
I also noted that pcap_open is missing in pcap.h, resulting in a warning

while compiling (with VS6); have I missed some include / define ?

Andrea

Gianluca Varenni wrote:
 - Original Message - 
 From: Alex Narinsky [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, May 03, 2004 11:01 PM
 Subject: [WinPcap-users] GNUMake is not working for 3.1
 
 
 
The directories inside examples contain the workspace file for VC++
and
GNUMake for gcc.  VC++ compiles projects fine.  GNUMake results in
errors.

For example, even if I additionally specify -DWPCAP -DHAVE_REMOTE in
the
gcc flags I am still getting:
/cygdrive/c/wpdpack_3_1/WpdPack/Examples/pcap_filter/pcap_filter.c:95:
undefined reference to `_pcap_open'

GNU Make in 3.0 works fine
 
 
 Hi.
 
 This is a known problem with the examples and cygwin: the lib file for
 cygwin (libwpcap.a) does not export pcap_open (together with all the
stuff
 related to remote capture, i.e. code under #define HAVE_REMOTE),
because
 cygwin does not support some new socket APIs used by the wpcap.dll
code
 (getnameinfo and gai_strerror)I don't know if they have added it in
the last
 month or so, I haven't checked. As a consequence, gcc fails to link
those
 examples (the examples do compile under VC6).
 
 WinPcap 3.0 did not have such problems because the example did not
make use
 of pcap_open.
 
 Have a nice day
 GV
 
 
 
 
Thank you for feedback

Alex Narinsky






==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
==

 
 
 
 
 
 
 ==
  This is the WinPcap users list. It is archived at
  http://www.mail-archive.com/[EMAIL PROTECTED]/
 
  To unsubscribe use 
  mailto: [EMAIL PROTECTED]
 ==
 


==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==





==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==


[WinPcap-users] can windump capture packets in wireless LAN?

2004-05-05 Thread Lei Liang
Dear all,
  I tried to use windump to capture packet in a wireless lan. the command
is windump -i 2 -n -q where the 2 is my wireless network card.but it
said 0 packet received. the fact is i am surfing the internet and it
should capture all of the packets in the LAN. so i wonder if windump can
capture packets in wireless lan or not. Thank you very much for any
response.

cheers,
lei


==
 This is the WinPcap users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use 
 mailto: [EMAIL PROTECTED]
==