[Winpcap-users] Always retrieving 0.0.0.0 IP address
Gerald Capwell
gcapwell at broadcom.com
Thu Sep 25 20:22:05 GMT 2008
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<mailto:gcapwell at broadcom.com>
To: winpcap-users at winpcap.org<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20080925/be22920d/attachment-0001.htm
More information about the Winpcap-users
mailing list