[Winpcap-users] Always retrieving 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 address?

Iflist is available in the winpcap developer's pack, wpdpack\Examples-pcap\iflist

Have a nice day
  ----- Original Message ----- 
  From: Gerald Capwell 
  To: winpcap-users at winpcap.org 
  Sent: Thursday, September 11, 2008 2:47 PM
  Subject: [Winpcap-users] Always retrieving IP address

  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 ""

  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
-------------- 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