]>
git.ipfire.org Git - thirdparty/bird.git/blob - filter/f-util.c
82dc1c3dfa150408314a3f57e5969fb4c1f4d6b1
2 * Filters: utility functions
4 * Copyright 1998 Pavel Machek <pavel@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
10 #include "conf/conf.h"
11 #include "filter/filter.h"
17 ret
= cfg_alloc(sizeof(struct f_inst
));
18 ret
->code
= ret
->aux
= 0;
19 ret
->arg1
= ret
->arg2
= ret
->next
= NULL
;
24 f_new_dynamic_attr(int type
, int code
)
26 struct f_inst
*f
= f_new_inst();
33 filter_name(struct filter
*filter
)
37 else if (filter
== FILTER_REJECT
)