Statistics
| Branch: | Revision:

iof-bird-daemon / conf @ bc2fb680

# Date Author Comment
bc2fb680 10/31/1999 05:47 PM Martin Mares

Parse CLI commands. We use the same parser as for configuration files (because
we want to allow filter and similar complex constructs to be used in commands
and we should avoid code duplication), only with CLI_MARKER token prepended
before the whole input....

41be4444 10/28/1999 09:03 PM Pavel Machek

switch() { } done right.

dce26783 08/03/1999 07:36 PM Martin Mares

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....
6542ece9 07/01/1999 09:11 AM Pavel Machek

Function calling in filters works - somehow. Calling syntax is
currently very ugly, beware. Variables are not really local - that
needs to be fixed.

9d79fec8 05/26/1999 02:24 PM Pavel Machek

Added notion of datetime

0e02abfd 05/17/1999 08:14 PM Martin Mares

From now we support multiple tables. The master_table variable is
definitely gone. Both rte_update() and rte_discard() have an additional
argument telling which table should they modify.

Also, rte_update() no longer walks the whole protocol list -- each table...

4107df1d 05/17/1999 08:06 PM Martin Mares

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.

36bbfc70 04/19/1999 06:41 PM Pavel Machek

Updated filters: they now actually see IP/pxlen of net being filtered,
gateway, and who told us, so they can do usefull jobs from now on.

38506f71 04/12/1999 07:58 PM Pavel Machek

Sets of integers now actually work. Sets of IP will work as soon as
compare function is ready.

23b1539b 04/07/1999 12:11 PM Pavel Machek

Filters upgraded - a bit. Moved code to filter.c because it is where
it belongs. (f-util.c stays there for auxiliary and non-important things.)

d4ff7482 04/05/1999 08:06 PM Martin Mares

Use a more reasonable pool chunk size: 4080 bytes seem to be a good
approximation of a integral fraction of page size even if both malloc
overhead and chunk header space is counted.

ba921648 03/29/1999 08:21 PM Pavel Machek

Update of filters towards new interface.

7f400d1c 03/29/1999 07:04 PM Martin Mares

After today's lengthy discussions about filter syntax, let's clean up
whitespace/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....
4ba84ebc 03/26/1999 09:37 PM Martin Mares

Slightly better generator of default protocol instance names.

e0f2e42f 03/17/1999 02:29 PM Martin Mares

A couple of filter tweaks:

o  Introduced struct filter which serves as an external reference
to filter. Using struct symbol for this is unwise since it doesn't
allow extra information attached to the filter and it also forces
all filters to be named....
1aa5cf1c 03/09/1999 02:44 PM Pavel Machek

Added '=' to operator list

b7005824 03/08/1999 08:30 PM Pavel Machek

Filters are now a tiny bit stronger (if is actually working ;-)

3d8ef0c9 03/02/1999 01:15 PM Pavel Machek

I just don't like files enclosed in <>.

72614174 02/13/1999 09:34 PM Martin Mares

'#' comments in config files are equivalent to end of line, therefore
also to implicit ';'.

4e9498cb 02/13/1999 06:42 PM Martin Mares

config->router_id works again.

31b3e1bb 02/05/1999 09:37 PM Martin Mares

Implemented new configuration/reconfiguration interface and defined protocol
state machines. Full explanation will follow soon.

c9b66706 01/15/1999 06:04 PM Martin Mares

Original `expr' is back, filter expressions renamed to `term'.

In the future, we'll allow any filter term in place of `expr' and we'll
just evaluate it immediately, but not now as we have no evaluation
routines.

e3a39a9e 01/15/1999 04:59 PM Martin Mares

Killed duplicate %type for expr.

b9d70dc8 01/15/1999 04:49 PM Pavel Machek

Filters, second try. This time they have their own directory.

489b6b5e 01/15/1999 04:13 PM Pavel Machek

#if 1 that creeped into cvs killed.

72380a34 01/15/1999 02:41 PM Pavel Machek

Filters added. They are unable to do anything interesting for now
(with exception of printing integers to screen), but they exist.

49e7e5ee 01/10/1999 12:18 AM Martin Mares

New makefiles. Includes support for out-of-source-tree builds.

89d2355d 12/06/1998 11:10 PM Martin Mares

Added new rule for prefix length / netmask.

cc12cf05 12/06/1998 11:10 PM Martin Mares

cf_error() now accepts any format strings instead of just an error
message. Also added extra kludge to get rid of collisions of REJECT
symbols.

0846203e 12/06/1998 05:39 PM Martin Mares

Fixed bug in CF_ADDTO. How it's possible it has ever worked?

166b9c49 12/06/1998 05:38 PM Martin Mares

Added rule "bool" for boolean switches.

b35d72ac 12/06/1998 11:59 AM Martin Mares

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.

50d8424a 11/29/1998 10:03 PM Martin Mares

Added configuration of the device internal protocol. This is primarily
intended to serve as an example of interface pattern list use. As a side
effect, you can disable generating of device routes by disabling
this protocol.

49e4a4d1 11/29/1998 09:59 PM Martin Mares

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...
0b62c3a7 11/27/1998 09:32 PM Martin Mares

Trivial 15-line bison excercise: Implemented expressions including
user-defined numeric symbols. Whenever possible, use `expr' instead
of `NUM' to get full express ion power :-)

c74c0e3c 11/27/1998 09:09 PM Martin Mares

First attempt at protocol configuration (now done only for RIP).

8450be97 11/27/1998 09:07 PM Martin Mares

Added generator of default names.

70591fa0 11/27/1998 07:37 PM Martin Mares

Compile and use the new configuration code by default.

f142750d 11/27/1998 07:36 PM Martin Mares

Base of the parser.

82fc7be7 11/27/1998 07:35 PM Martin Mares

Lexical analyser.

fe7cec12 11/27/1998 07:35 PM Martin Mares

Replaced nest/confile.h by conf/conf.h, added a lot of new definitions.

ce6ca809 11/27/1998 07:33 PM Martin Mares

This script takes configuration fragments and generates full Bison grammar
from them.

882c588a 11/27/1998 07:33 PM Martin Mares

This script takes configuration fragments and extracts keyword list
from them.