Parse CLI commands. We use the same parser as for configuration files (becausewe want to allow filter and similar complex constructs to be used in commandsand we should avoid code duplication), only with CLI_MARKER token prependedbefore the whole input....
Basic support for IPv6. The system-dependent part doesn't work yet,but the core routines are there and seem to be working.
o lib/ipv6.[ch] written o Lexical analyser recognizes IPv6 addresses and when in IPv6 mode, treats pure IPv4 addresses as router IDs....
Implemented two new symbol handling functions:
o cf_define_symbol() -- it assigns a meaning to a symbol, bailing out if it already has one. o cf_find_symbol() -- finds symbol by name and creates it if not found.
Also modified filter/config.Y to make use of the first function.
Sets of integers now actually work. Sets of IP will work as soon ascompare function is ready.
Filters upgraded - a bit. Moved code to filter.c because it is whereit belongs. (f-util.c stays there for auxiliary and non-important things.)
After today's lengthy discussions about filter syntax, let's clean upwhitespace/semicolon rules for whole config file:
o All non-zero amounts of whitespace are equivalent to single space (aka `all the whitespace has been born equal' ;-)). o Comments count as whitespace....
Slightly better generator of default protocol instance names.
'#' comments in config files are equivalent to end of line, thereforealso to implicit ';'.
Implemented new configuration/reconfiguration interface and defined protocolstate machines. Full explanation will follow soon.
#if 1 that creeped into cvs killed.
Filters added. They are unable to do anything interesting for now(with exception of printing integers to screen), but they exist.
New makefiles. Includes support for out-of-source-tree builds.
cf_error() now accepts any format strings instead of just an errormessage. Also added extra kludge to get rid of collisions of REJECTsymbols.
Name cleanups as suggested by Pavel:
- cfg_strcpy() > cfg_strdup() mempool -> linpool, mp_* -> lp_* [to avoid confusion with memblock, mb_*]
Anyway, it might be better to stop ranting about names and do some real work.
Created new functions for allocating configuration data:
o cfg_alloc(size) -- generic memory allocation o cfg_allocu(size) -- unaligned memory allocation o cfg_allocz(size) -- zeroed memory allocation o cfg_strcpy(str) -- allocate a copy of a string...
Trivial 15-line bison excercise: Implemented expressions includinguser-defined numeric symbols. Whenever possible, use `expr' insteadof `NUM' to get full express ion power :-)
Added generator of default names.