From 758458be054ebdf4cd77620faf214f2b491a49dc Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 May 2000 11:17:49 +0000 Subject: [PATCH] Unified parsing of prefixes. Had to rename `prefix' in filters to `fprefix'. --- TODO | 1 - conf/confbase.Y | 9 +++++++++ filter/config.Y | 23 +++++++++++++---------- filter/filter.h | 4 ++-- lib/ip.h | 7 ++++++- nest/config.Y | 11 +++++------ proto/static/config.Y | 7 +++---- 7 files changed, 38 insertions(+), 24 deletions(-) diff --git a/TODO b/TODO index 972afae7..2bf8eb3c 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,5 @@ Core ~~~~ -- config: when parsing prefix, check zero bits - config: try to unify expressions - static: check validity of route destination? diff --git a/conf/confbase.Y b/conf/confbase.Y index 7ac07fea..c6143012 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -40,6 +40,7 @@ CF_DECLS struct rt_show_data *ra; void *g; bird_clock_t time; + struct prefix px; } %token END CLI_MARKER INVALID_TOKEN @@ -52,6 +53,7 @@ CF_DECLS %type expr bool pxlen %type