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:
@@ -32,10 +32,10 @@
|
||||
|
||||
#define DEBUG 0
|
||||
|
||||
// if '1', do extra checks and
|
||||
// if '0', do extra checks and
|
||||
// assertions. good for finding bugs
|
||||
// at an early stage of development.
|
||||
// for production, should be 0.
|
||||
// for production, should be 1.
|
||||
#define ROBUST 1
|
||||
|
||||
// 2 times: 32 characters, 7 ':''s, a ':12345'.
|
||||
@@ -93,7 +93,7 @@ public:
|
||||
|
||||
int result = inet_pton (AF_INET6, address, &addr6);
|
||||
|
||||
if (ROBUST)
|
||||
if (!ROBUST)
|
||||
assert (result > 0);
|
||||
sa_family = AF_INET6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user