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

@@ -14,7 +14,7 @@ class ConnList
public:
ConnList (Connection * m_val, ConnList * m_next)
{
if (ROBUST)
if (!ROBUST)
assert (m_val != NULL);
val = m_val; next = m_next;
}
@@ -61,7 +61,7 @@ public:
uid = 0;
}
void check () {
if (ROBUST) {
if (!ROBUST) {
assert (pid >= 0);
assert (uid >= 0);
}
@@ -101,7 +101,7 @@ class ProcList
public:
ProcList (Process * m_val, ProcList * m_next)
{
if (ROBUST)
if (!ROBUST)
assert (m_val != NULL);
val = m_val; next = m_next;
}