varia. now correctly sniffs in non-blocking mode (essential for multi-interface

sniffing), while requires at least libpcap 0.8
This commit is contained in:
Arnout Engelen
2005-04-03 09:31:26 +00:00
parent a142648f45
commit c66bc829ea
11 changed files with 56 additions and 28 deletions

View File

@@ -279,11 +279,12 @@ int main (int argc, char** argv)
{
/* The following code solves sf.net bug 1019381, but is only available
* in newer versions of libpcap */
// TODO ARN
/*if (pcap_setnonblock (newhandle, 1, errbuf) == -1)
if (dp_setnonblock (newhandle, 1, errbuf) == -1)
{
// ERROR
}*/
}
handles = new handle (newhandle, current_dev->name, handles);
}