[Winpcap-users] Always retrieving 0.0.0.0 IP address

Gerald Capwell gcapwell at broadcom.com
Thu Sep 11 21:47:53 GMT 2008


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






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


More information about the Winpcap-users mailing list