[Winpcap-users] Always retrieving 0.0.0.0 IP address
Gianluca Varenni
gianluca.varenni at cacetech.com
Fri Sep 26 05:09:46 GMT 2008
We haven't tested the devpack of WinPcap 4.0.x and 4.1 beta4 on Visual Studio 2008. But I'm pretty sure that the new experimental devpack available at the link below should work on Visual Studio 2008. You can definitely compile the samples with that devpack and use them with an older version of WinPcap (like 4.0.x or 4.1 beta4).
http://www.winpcap.org/install/x64.htm
Have a nice day
GV
----- Original Message -----
From: Gerald Capwell
To: winpcap-users at winpcap.org
Sent: Thursday, September 25, 2008 1:22 PM
Subject: RE: [Winpcap-users] Always retrieving 0.0.0.0 IP address
I can't get iflist to build. I get the following error.
Command Lines
Creating temporary file "c:\My Documents\Visual Studio 2008\WpdPack\Examples-pcap\iflist\Debug\RSP0000214042676.rsp" with contents
[
/Od /I "../" /I "../bpf/" /I "../lbl/" /I "../../Include/" /I "D:/Program Files/Microsoft Platform SDK/include" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "WPCAP" /D "HAVE_REMOTE" /D "_VC80_UPGRADE=0x0600" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MTd /Fp".\Debug/iflist.pch" /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI /TC ".\iflist.c"
]
Creating command line "cl.exe @"c:\My Documents\Visual Studio 2008\WpdPack\Examples-pcap\iflist\Debug\RSP0000214042676.rsp" /nologo /errorReport:prompt"
Output Window
Compiling...
iflist.c
c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: '_vsnprintf': attributes inconsistent with previous declaration
c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(350) : see declaration of '_vsnprintf'
Results
Build log was saved at "file://c:\My Documents\Visual Studio 2008\WpdPack\Examples-pcap\iflist\Debug\BuildLog.htm"
iflist - 1 error(s), 0 warning(s)
I tried to reinstall the network drivers and it seems to have helped. Do you have any ideas to the issue above?
------------------------------------------------------------------------------
From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Gianluca Varenni
Sent: Friday, September 19, 2008 11:37 AM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] Always retrieving 0.0.0.0 IP address
Does the sample called "iflist" return the same 0.0.0.0 address?
Iflist is available in the winpcap developer's pack, wpdpack\Examples-pcap\iflist
Have a nice day
GV
----- Original Message -----
From: Gerald Capwell
To: winpcap-users at winpcap.org
Sent: Thursday, September 11, 2008 2:47 PM
Subject: [Winpcap-users] Always retrieving 0.0.0.0 IP address
Hi,
I am writing MSFT VC++ Studio 8 application that uses winpcap. I can receive a correct device list, however I cannot retrieve the IP addresses of each adapter. I always receive "0.0.0.0"
Here is the function call:
iptos(((struct sockaddr_in *)(d->addresses->addr))->sin_addr.S_un.S_addr);
I'm using the 4.1Beta4 build.
Any ideas?
Thanks for your help.
Regards, Gerry
----------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
------------------------------------------------------------------------------
_______________________________________________
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/20080926/d9646955/attachment.htm
More information about the Winpcap-users
mailing list