More filter development. It builds but is not integrated with the rest of the code.

This commit is contained in:
Adam Ierymenko 2013-07-08 19:52:40 -04:00
parent f8cfdf973e
commit e7f20ad5f9
4 changed files with 123 additions and 7 deletions

View file

@ -258,7 +258,7 @@ public:
throw()
{
Mutex::Lock _l(_chain_m);
return _chain.length();
return _chain.size();
}
/**
@ -268,11 +268,19 @@ public:
throw()
{
Mutex::Lock _l(_chain_m);
if (i < _chain.length())
if (i < _chain.size())
return _chain[i];
return Entry();
}
/**
* Get a string representation of this filter
*
* @param sep Separator between filter rules, or NULL for comma (default)
* @return Human-readable string
*/
std::string toString(const char *sep = (const char *)0) const;
/**
* @param etherType Ethernet type ID
* @return Name of Ethernet protocol (e.g. ARP, IPV4)