summaryrefslogtreecommitdiff
path: root/babeld/babel_filter.h
diff options
context:
space:
mode:
authorJuliusz Chroboczek <jch@pps.jussieu.fr>2012-02-09 14:06:11 +0100
committerPaul Jakma <paul@quagga.net>2012-03-25 17:06:53 +0100
commit31e2a19fd2b4aca34b1d2f5e2eb8c9a44b9ea6c9 (patch)
treea45b53df9a0a9d9acda77462d0993ca836df3936 /babeld/babel_filter.h
parent578ce371d12422ce444f31ae4e51b21675c74b55 (diff)
babeld: refactor filtering stubs.
Factorise the common parts of the in/out filtering functions. This also fixes a bug with filtered out routes, which in babeld are signalled by a filter returing INFINITY, not -1.
Diffstat (limited to 'babeld/babel_filter.h')
-rw-r--r--babeld/babel_filter.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/babeld/babel_filter.h b/babeld/babel_filter.h
index 52b72f60..73722e0a 100644
--- a/babeld/babel_filter.h
+++ b/babeld/babel_filter.h
@@ -43,12 +43,7 @@ THE SOFTWARE.
#include "prefix.h"
#include "babel_interface.h"
-/* filter route coming from other worlds */
-int babel_filter_in (struct prefix *, babel_interface_nfo *);
-/* filter route sending to other worlds */
-int babel_filter_out (struct prefix *, babel_interface_nfo *);
-/* filter route coming from our friend zebra */
-int babel_filter_redistribute
- (struct prefix *, babel_interface_nfo *);
+int babel_filter(int output, const unsigned char *prefix, unsigned short plen,
+ unsigned int index);
#endif /* BABELD_BABEL_FILTER_H */