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

Steven Smethurst funvill at funvill.com
Wed Jun 21 23:49:10 GMT 2006


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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060621/89201133/attachment.htm


More information about the Winpcap-users mailing list