[Winpcap-users] Packet32.h(209) : error C2079: 'IPAddress'
usesundefined struct 'sockaddr_storage'
Gianluca Varenni
gianluca.varenni at cacetech.com
Thu Jun 22 06:36:19 GMT 2006
Steven,
you probably installed the wrong version of the Platform SDK: the latest versions of the PSDK are *not* compatible with Visual Studio. A version of the Microsoft Platform Software Development Kit (SDK) that is compatible with Visual Studio 6 (Platform SDK February 2003) is available on the Microsoft web site at http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm. It can be ordered online at http://www.qmedia.ca/launch/psdk.htm, and it's also available to Microsoft MSDN subscribers on the Subscribers Downloads web site.
NOTE: after installing it, you should register it within visual studio, go to start->AllPrograms->Microsoft Platform sDK Feb2003->Visual Studio registration->register PSDK directories within visual studio.
Have a nice day
GV
----- Original Message -----
From: Steven Smethurst
To: winpcap-users at winpcap.org
Sent: Wednesday, June 21, 2006 4:49 PM
Subject: [Winpcap-users] Packet32.h(209) : error C2079: 'IPAddress' usesundefined struct 'sockaddr_storage'
Hello
I am trying to build one of the examples that came with Winpcap version 3.1
\Examples-remote\PacketDriver\GetMacAddress
And I am getting the following errors
Compiling...
GetMacAddress.c
c:\dev\sdk\wpdpack\include\packet32.h(209) : error C2079: 'IPAddress' uses undefined struct 'sockaddr_storage'
c:\dev\sdk\wpdpack\include\packet32.h(210) : error C2079: 'SubnetMask' uses undefined struct 'sockaddr_storage'
c:\dev\sdk\wpdpack\include\packet32.h(211) : error C2079: 'Broadcast' uses undefined struct 'sockaddr_storage'
Snippet from c:\dev\sdk\wpdpack\include\packet32.h
--------------------------------------------------------------------
/*!
\brief Addresses of a network adapter.
This structure is used by the PacketGetNetInfoEx() function to return the IP addresses associated with
an adapter.
*/
typedef struct npf_if_addr {
struct sockaddr_storage IPAddress; ///< IP address.
struct sockaddr_storage SubnetMask; ///< Netmask for that address.
struct sockaddr_storage Broadcast; ///< Broadcast address.
}npf_if_addr;
--------------------------------------------------------------------
I am able to build all the \Examples-pcap example with out any problems.
Any help or suggestions would be greatly appreciated.
Using WinPcap version 3.1
With Visual studios 6.0
I have also updated my platformsdk
http://www.microsoft.com/msdownload/platformsdk/sdkupdate
------------------------------------------------------------------------------
_______________________________________________
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/20060622/740b6b09/attachment.htm
More information about the Winpcap-users
mailing list