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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user