Hi,
I made a small bandwidth monitor that tracks on protocol and possibly
port. This works with WinPCAP. I tried to port it to FreeBSD running on
a pci33 166Mhz noname Alpha , and after running configure from the
libpcap tarball i have a libpcap.a
Then from the tutorial site i fetched the following lines (on bottom of
email).
However i get the following response:
$ ./testapp.exe
Error opening device. (no suitable device found)
when forcing the device to rl0 (my ethernet card) i get:
$ ./testapp.exe
Device: rl0
could not open 'rl0'
Any insight on how to solve this would be appreciated.
Floris.
------------------------------
int main()
{
pcap_t *handle;
char *dev, errbuf[PCAP_ERRBUF_SIZE];
const u_char *packet; /* The actual packet */
dev = pcap_lookupdev(errbuf);
if (!dev)
{
printf("Error opening device. (%s)\n",errbuf);
return 1;
}
// dev="rl0";
printf("Device: %s\n", dev);
handle = pcap_open_live(dev, BUFSIZ, 1, 0, errbuf);
if (!handle)
{
printf("could not open '%s'\n",dev);
return 2;
}
pcap_close(handle);
return 0;
}
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe