[Winpcap-users] pcap_findalldevs()

Gisle Vanem gvanem at broadpark.no
Mon May 20 08:47:12 PDT 2013


"Tola Ndumari" <tody.da.master at gmail.com> wrote:

> every time i call the function it returns the name and description of the
> device. It returns 23 and 2 for the sa_family but in both cases sa_data is
> an empty string, any help is much appreciated

Remember that an adapter can have several addresses (IPv4 and/or IPv6 etc.).
Take a look at tests/findalldevstest.c in the libpcap sources for an example.

--gv


More information about the Winpcap-users mailing list