Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Label Name of Network device on Windows is possible? [npcap] #1660

Open
Zilog80c opened this issue Jul 14, 2019 · 0 comments

Comments

@Zilog80c
Copy link

commented Jul 14, 2019

Hi,
i have try on windows 10 and windows 7.
When write a list of network device, don't appear in the list, the label name on windows , for expample:
PCIe GBE Family Controller i label "Lan"
Intel Ac Wifi Controller i label "WiFi".

when list a network device
\Device\NPF_{xxxxxxxx....xxxxx} (Realtek PCIe GBE Family Controller)
the label "LAN" are not present;
\Device\NPF_{xxxxxxx...xxxxxxx} (Microsoft)
the label "WiFI" is not present.

Thanks for help.

The Code for test are:

#include <stdio.h>
#include <stdlib.h>
#include <pcap/pcap.h>

int i,inum;
char errbuf[32768];
pcap_t *net_pcap;
pcap_if_t *alldevs;
pcap_if_t *d;

int main(int argc, char *argv)
{
if(pcap_findalldevs(&alldevs, errbuf) == -1)
{
fprintf(stderr,"Error in pcap_findalldevs: %s\n", errbuf);
exit(1);
}
/
Print the list */
for(d=alldevs; d; d=d->next)
{
printf("%d. %s", ++i, d->name);
if (d->description)
printf(" (%s)\n", d->description);
else
printf(" (No description available)\n");
}
if(i==0)
{
printf("\nNo interfaces found! Make sure Npcap is installed.\n");
return -1;
}
printf("Enter the interface number (1-%d):",i);
scanf("%d", &inum);
pcap_freealldevs(alldevs);
exit (0);
}

@Zilog80c Zilog80c changed the title Show Label Name of Network device on Windows is possible? Show Label Name of Network device on Windows is possible? [npcap] Jul 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.