From e3f2d5fce3e339bb34f14d7b2569c1bd43b741ba Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 15 May 2000 11:48:23 +0000 Subject: [PATCH] Cleanup of configuration. o Use `expr' instead of `NUM' and `ipa' instead of `IPA', so that defined symbols work everywhere. o `define' now accepts both numbers and IP addresses. o Renamed `ipa' in filters to `fipa'. Pavel, please update filters to accept define'd symbols as well. --- TODO | 1 - conf/conf.h | 1 + conf/confbase.Y | 23 ++++++++++++++++++----- filter/config.Y | 8 ++++---- nest/config.Y | 2 +- proto/bgp/config.Y | 28 ++++++++++++++-------------- proto/static/config.Y | 2 +- 7 files changed, 39 insertions(+), 26 deletions(-) diff --git a/TODO b/TODO index d80b7cb8..d6733395 100644 --- a/TODO +++ b/TODO @@ -38,7 +38,6 @@ Globals - check incoming packets and log errors!! - check log calls for trailing newlines and log levels followed by comma - check if all protocols set proper packet priorities and TTL's. -- replace all NUM, IPA and expr tokens by constant filter expressions - try compiling with -Wunused - does everybody test return value of sk_open? - doc: references to RFC's we did follow diff --git a/conf/conf.h b/conf/conf.h index 5abca7da..dbc747d6 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -86,6 +86,7 @@ struct symbol { #define SYM_FUNCTION 3 #define SYM_FILTER 4 #define SYM_TABLE 5 +#define SYM_IPA 6 #define SYM_VARIABLE 0x100 /* 0x100-0x1ff are variable types */ diff --git a/conf/confbase.Y b/conf/confbase.Y index 4626d440..588f5826 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -53,6 +53,7 @@ CF_DECLS %type expr bool pxlen %type