[Winpcap-users] Always retrieving 0.0.0.0 IP address

Gianluca Varenni gianluca.varenni at cacetech.com
Fri Sep 19 16:36:31 GMT 2008


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 
  To: 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/20080919/6a498ff8/attachment.htm


More information about the Winpcap-users mailing list