diff options
Diffstat (limited to 'node/Filter.hpp')
-rw-r--r-- | node/Filter.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/node/Filter.hpp b/node/Filter.hpp index df9f904d..861603f0 100644 --- a/node/Filter.hpp +++ b/node/Filter.hpp @@ -258,7 +258,7 @@ public: throw() { Mutex::Lock _l(_chain_m); - return _chain.length(); + return _chain.size(); } /** @@ -268,12 +268,20 @@ 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) */ |