summaryrefslogtreecommitdiffstats
path: root/filter/f-util.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-01 12:32:23 +0100
committerMartin Mares <mj@ucw.cz>2000-03-01 12:32:23 +0100
commitdb1326aa5e39711d88d305ac08a0afa137ab77f0 (patch)
treee7b9ebe24bd923bde8c2d177aec2131cf8ebf90c /filter/f-util.c
parent2ca3d9a8fc25be6f7d41d8a6ff50a70612c11c93 (diff)
downloadbird-db1326aa5e39711d88d305ac08a0afa137ab77f0.tar
bird-db1326aa5e39711d88d305ac08a0afa137ab77f0.zip
Dynamic attributes are now declared in per-protocol grammar files instead
of filter/config.Y. Bird now compiles even if you disable RIP. Removed RTA and IMPOSSIBLE tokens (unused). Removed superfluous comment in filter.h. I've tried to do my best, but Pavel, please check these changes.
Diffstat (limited to 'filter/f-util.c')
-rw-r--r--filter/f-util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/f-util.c b/filter/f-util.c
index b070d95..2bc7873 100644
--- a/filter/f-util.c
+++ b/filter/f-util.c
@@ -32,6 +32,15 @@ f_new_inst(void)
return ret;
}
+struct f_inst *
+f_new_dynamic_attr(int code)
+{
+ struct f_inst *f = f_new_inst();
+ f->aux = T_INT;
+ f->a2.i = code;
+ return f;
+}
+
char *
filter_name(struct filter *filter)
{