[Winpcap-users] multi-NICs with the same name in Win98

David Chang dchang at fsautomation.com
Fri Nov 3 03:57:31 GMT 2006

I don't use Win98, but here's my device name:


Thus, I don't think Winpcap uses descriptive names, but rather low-level 
device names (found in the registry).  If you look at the low-level device 
name for your 3 interfaces, I think you'll find that they're all different.

Here's a quick and dirty way to find out Winpcap device names...

int main(void)
        pcap_if_t *alldevs;
        pcap_if_t *d;
        int cnt;
        char errbuf[PCAP_ERRBUF_SIZE];

        /* Retrieve the device list */
        if (pcap_findalldevs(&alldevs, errbuf) == -1)
                fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf);

        /* Print the list */
        cnt = 0;
        d = alldevs;
        while (d != NULL)
                printf("%3d.  Device: %s\n", cnt, d->name);
                if (d->description)
                        printf("     Comment: %s\n", d->description);

                d = d->next;


NOTE: you'll need to include the appropriate winpcap header files (I wrote 
this for libpcap).


----- Original Message ----- 
From: "bugtraq" <bugtraq at 163.com>
To: <winpcap-users at winpcap.org>
Sent: Thursday, November 02, 2006 5:58 PM
Subject: [Winpcap-users] multi-NICs with the same name in Win98

> Hi,
> I  have a Win98 machine with 3 identical NICs(only MAC addresses are
> different). The adapter name is "Intel(R) PRo/100+ PCI Adapter", and
> the LogDriverName is E100B-100. In Win98, Winpcap uses LogDriverName to 
> open
> the adapter, so I  wonder Winpcap can deal with such conditions
> correctly . That is,  If I open the adapter by LogDriverName "E100b-100"
> and send some packets, which NIC will the packets pass through?
> Does anyone know? Thanks
> -- 
> bugtraq <bugtraq at 163.com>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users

More information about the Winpcap-users mailing list