[Winpcap-users] Packet32.h(209) : error C2079: 'IPAddress'usesundefined struct 'sockaddr_storage'

Steven Smethurst funvill at funvill.com
Thu Jun 22 22:46:18 GMT 2006


Hello 

 

Thank you,

This solved my problem 

I guess I downloaded an improper version of the windows SDK.

 

Thanks again for your help.

 

- Steven Smethurst 

 

  _____  

From: winpcap-users-bounces at winpcap.org
[mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Gianluca Varenni
Sent: Wednesday, June 21, 2006 11:36 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] Packet32.h(209) : error C2079:
'IPAddress'usesundefined struct 'sockaddr_storage'

 

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>
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm. It
can be ordered online at  <http://www.qmedia.ca/launch/psdk.htm>
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 <mailto:funvill at funvill.com>  

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/5913ac5e/attachment.htm


More information about the Winpcap-users mailing list