1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Added code for testing filters.

This commit is contained in:
Pavel Machek
2000-04-26 08:03:50 +00:00
parent 471bd6c30b
commit 7a86a8b08d
4 changed files with 34 additions and 5 deletions

View File

@@ -5,8 +5,6 @@
*
* Can be freely distributed and used under the terms of the GNU GPL.
*
* Notice that pair is stored as integer: first << 16 | second
*
*/
#define LOCAL_DEBUG
@@ -26,7 +24,7 @@
#define P(a,b) ((a<<8) | b)
struct f_inst *startup_func = NULL;
struct f_inst *startup_func = NULL, *test1_func, *test2_func;
#define CMP_ERROR 999
@@ -630,6 +628,9 @@ void
filters_postconfig(void)
{
struct f_val res;
if (!i_same(test1_func, test2_func))
bug("i_same does not work");
if (startup_func) {
debug( "Launching startup function...\n" );
f_pool = lp_new(&root_pool, 1024);