tcpdump mailing list archives
Problems with fnct pcap_lookupdev()
From: César Cárdenas <ccardena () itesm mx>
Date: Wed, 28 Apr 2004 11:09:39 +0200
Dear all:
I executed "windump -d" from a DOS window and the result is:
windump: listening on \Device\NPF_{FC45F544-C3FF-4FA6-AA41-EC5AC6F6DD4B}<000>
ret #96
When I run the following simple code:
#include <stdio.h>
#include <pcap.h>
int main()
{
char *dev; /*The device to sniff on*/
char errbuf[PCAP_ERRBUF_SIZE];/*Error string*/
dev = pcap_lookupdev (errbuf);
printf("Device: %s\n%s\n", dev, errbuf);
return (0);
}
The results are (in a DOS window):
Device: \
á=L
I am using Dev-cpp v 4.9.8.0. Does any body knows where is the problem?
It suppose to give results like:
eth0
fddi
...
I really appreciate any help you could provide me,
Please accept my best regards,
César Cárdenas
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- Problems with fnct pcap_lookupdev() César Cárdenas (Apr 28)
- <Possible follow-ups>
- Re: Fw: Problems with fnct pcap_lookupdev() César Cárdenas (Apr 28)
- Re: Fw: Problems with fnct pcap_lookupdev() Guy Harris (Apr 30)
