| Branch: | Revision:

iof-bird-daemon / filter @ e48dae3e

# Date Author Comment
ab1129c1 05/05/2000 05:17 PM Martin Mares

Added skeleton Doc files for the whole developer's documentation.

9a220cab 05/04/2000 08:52 PM Martin Mares

#ifdef out lots of debugging information.

The long resource/routing table dump printed upon startup is gone now
and if you wish to see it, just send bird SIGUSR1 or use the `debug'

2337ade7 04/30/2000 06:47 PM Pavel Machek

Moved documentation to top of file, where it belongs.

8c62d6e3 04/29/2000 05:48 PM Pavel Machek

Minor documentation update.

2edb31b0 04/28/2000 03:11 PM Martin Mares

Split CF_HDR section to CF_HDR (only includes) and CF_DEFINES (defines,
C declarations etc.).

ff95080f 04/28/2000 09:48 AM Pavel Machek

Cleanup of dead code + example documentation for two functions.

b0c9c21c 04/26/2000 09:38 AM Pavel Machek

Small cleanup.

2e5a8735 04/26/2000 09:36 AM Pavel Machek

filter_same should now work with path masks.

f71bded6 04/26/2000 09:30 AM Pavel Machek

Bugfix in i_same (comparing of paths still does not work).

7a86a8b0 04/26/2000 08:03 AM Pavel Machek

Added code for testing filters.

471bd6c3 04/26/2000 07:47 AM Pavel Machek

Marked place where new enums belong.

94d9dfa4 04/26/2000 07:31 AM Pavel Machek

Startup renamed to __startup: it is internal function and mj already
uses word startup in other context.

7d6eebae 04/20/2000 10:25 AM Pavel Machek

Create syntax sugar for add/delete/prepend, so xyzzy.prepend(123) is
possible. That means that milestone 3 was reached.

0150e521 04/17/2000 02:12 PM Pavel Machek

Cleaned up mess with types in e,a and e,S. Dynamic attributes should
now work.

74a7da48 04/17/2000 01:41 PM Martin Mares

Adding of dynamic attributes is hopefully correct now.

3bbc4ad6 04/17/2000 12:40 PM Pavel Machek

Special hack for atomic_aggr.

708711c3 04/17/2000 12:38 PM Pavel Machek

Community lists can be now accessed as dynamical attributes. Mj:
please create such dynamic atribute for bgp.

913ce95b 04/17/2000 11:52 AM Pavel Machek

EAF_ORIGINATED done right.

2bd2de01 04/17/2000 11:49 AM Pavel Machek

pair ~ community list matching works.

4444ed2b 04/17/2000 11:42 AM Pavel Machek

It is good idea to separate entries in list somehow. Adding/deleting
to community lists from filters now works.

991c36b5 04/17/2000 11:37 AM Pavel Machek

Use EAF_ORIGINATED as mj wanted. mj: check this!

9c400ec9 04/17/2000 11:34 AM Pavel Machek

Int sets moved to core. It is now possible to have variable of type clist.

159fa4ce 04/17/2000 11:20 AM Pavel Machek

Finish moving of path matching. Use int_set_print from core for
printing community lists.

2a40efa5 04/17/2000 11:11 AM Pavel Machek

as_path_match moved to a-path.c

684c6f5a 04/17/2000 11:06 AM Pavel Machek

Path_getlen moved to nest and length was made callable from filters.

ecd25633 04/17/2000 10:54 AM Pavel Machek

Use printing routine from nest/ instead of our own.

4b641bab 04/17/2000 10:50 AM Pavel Machek

Path matching now actually works, including / * 1 2 3 * /.

e399b6f6 04/17/2000 10:42 AM Pavel Machek

Path and path matching seem to work, now.

afc54517 04/17/2000 10:16 AM Pavel Machek

Prepend and creation of empty path should work, but it has strange
syntax for now.

0a40e973 04/12/2000 02:12 PM Pavel Machek

as_path_prepend is usable outside bgp.

a2d15746 04/12/2000 02:05 PM Pavel Machek

One less shift/reduce conflict.

ac7a2145 04/12/2000 02:02 PM Pavel Machek

f_new_dynamic_attr gets third argument, type as filters know it.

2803c9dd 04/12/2000 01:55 PM Martin Mares

Minor updates by Pavel.

66d573d4 04/12/2000 01:55 PM Martin Mares

Attribute type hack.

10a53608 04/12/2000 01:31 PM Pavel Machek

Filters now know type path. It is possible to declare variable of type
path, but it is not possible to write constant of type path.

It should be possible to print paths and match them.

dcab7890 04/12/2000 01:07 PM Pavel Machek

Renamed f_path to f_path_mask -- which is what it really is. Use
linklist instead of array of signed integers for path mask.

77de6882 04/12/2000 12:10 PM Pavel Machek

BGP_PATH masks now actually work as data type.

78c6217c 04/12/2000 10:34 AM Pavel Machek

Path printing is now much nicer: not having to put it backward
simplifies it. (Sorry for previous commit, cvs is naughty).

9196e9f8 04/10/2000 04:36 PM Pavel Machek

Commit fixes.

7f77e250 04/10/2000 03:07 PM Pavel Machek

Functions for matching paths added, tested lightly.

Functions for working with community lists added, they compile.

This should not be definitive place for this stuff.

798df5b1 04/01/2000 09:15 AM Martin Mares

When processing ACCEPT/REJECT carrying no message, don't print
trailing newline.

I hope the fix is correct, but please check.

b1573615 04/01/2000 09:15 AM Martin Mares

SOURCE should really refer to rta->source, not rta->gw.

Please check that all rta attributes are available, I guess that at
least rta->dest is missing.

3cf4a2e2 03/31/2000 11:35 PM Martin Mares

Removed lots of superfluous includes.

Use debug() instead of printf().

221135d6 03/31/2000 11:30 PM Martin Mares

Include "lib/string.h" instead of <string.h>. It should give us bzero()
and other non-portable functions on all systems.

3076b5ae 03/30/2000 08:50 AM Martin Mares

Renamed FF_OUTGOING to FF_FORCE_TMPATTR which much better fits the semantics.

Call rte_cow() instead of rte_do_cow(), so that COW works properly.

Stripped "\n" off several (de)bug messages.

0a06a9b8 03/29/2000 09:02 AM Pavel Machek

f_run gets one more parameter to distinguish between in and out modes.

81ce667b 03/12/2000 10:40 PM Martin Mares

Don't crash when filter_same() gets called on FILTER_ACCEPT or FILTER_REJECT.

6b9fa320 03/12/2000 09:01 PM Martin Mares

Great cleanup of debug messages. LOCAL_DEBUG turned off in most modules,
several debug() calls converted to DBG.

995e5894 03/09/2000 02:47 PM Pavel Machek

1 less shift/reduce conflict

print now takes arguments separated by ,

[ .. ] is now forbidden

[ ] now actually works

e4a73dbf 03/09/2000 01:21 PM Pavel Machek

CONST is now gone

9f4929e7 03/04/2000 10:30 PM Martin Mares

Renamed EAF_INLINE to EAF_TEMP to make the name reflect the real meaning.

a58dad62 03/04/2000 09:19 PM Martin Mares

Please think when defining operator priorities.

(: num_of_parser_conflicts -= 42 :)

d4d75628 03/02/2000 10:23 PM Pavel Machek

Avoid being exponential, do not allow ! =

62ab789d 03/01/2000 02:42 PM Pavel Machek

Added type parameter to f_new_dynamic_attr.

31e79264 03/01/2000 02:31 PM Pavel Machek

tmp_attrs fixed.

I do not know if it is right since mj ingores talk once started :-(.

db1326aa 03/01/2000 11:32 AM Martin Mares

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.

2d496d20 02/25/2000 11:15 AM Pavel Machek

Get rid of 'ab'-s, added return to functions.

9a4037d4 01/31/2000 05:44 PM Pavel Machek

filter_same() implemented. Don't bet on it, yet.

70844a6a 01/26/2000 09:28 PM Pavel Machek

Updated docs about filters, and added fixme.

30a6108c 01/16/2000 05:49 PM Martin Mares

Added filter_same() for comparision of two filters.

Pavel, please implement this as soon as possible.

60d7d10e 12/18/1999 08:39 PM Pavel Machek

Added fixme.

d46ffc97 12/16/1999 12:18 PM Martin Mares

Kicked off F_MODIFY (not generated nor used)

2e18b87d 12/08/1999 12:51 PM Pavel Machek

Disallow syntax.

6c14255d 12/08/1999 10:15 AM Pavel Machek

Make rta. syntax optional.

430da60f 12/02/1999 02:04 PM Martin Mares

Implemented `show route where <condition>' command.

Pavel, please check my addition to filter/config.Y.

2ad6dcdb 12/01/1999 03:07 PM Martin Mares

Make ACCEPT/REJECT actually return the result...

7e1f9971 12/01/1999 12:54 PM Pavel Machek

accept should behave as return, not running any commands after it.

6781e521 12/01/1999 11:39 AM Pavel Machek

FIXME's cleaned up: I have actually fixed things without killing

There are no urgent FIXME's in filters. Perhaps we should start with

4aa885a5 11/25/1999 01:42 PM Pavel Machek

Filters: fix rta access to use ->aux field.

455ca441 11/24/1999 12:16 PM Pavel Machek

Check that prefixes are really prefixes + fix config file to
comply. (:-( looks nicer than

8f013d9c 11/24/1999 12:09 PM Pavel Machek

Sorry, previous commit did not even compile.

48f9e019 11/24/1999 12:04 PM Pavel Machek

Filters: write access to dynamic attributes should actually work. It
would be nice to find method of testing such beasts.

f31156ca 11/18/1999 02:29 PM Pavel Machek

Filters: first parts of extended attributes being read-write. It can
not actually work since I do not do rta/rte cow, yet.

c7b43f33 11/18/1999 02:01 PM Pavel Machek

Split inst->code into inst->code and inst->aux. Both are only 16 bit,
so aux is suitable for storing type but not much more.

346a12c2 11/18/1999 01:21 PM Pavel Machek

You can now print enum.

fd54b602 11/15/1999 11:36 AM Martin Mares

ENUM's are now recognized as constants.

4515bdba 11/11/1999 01:55 PM Pavel Machek

Fixed order of arguments for function call.

Enumeration types should work once CF_ENUM() is ready.

Created test.conf for testing of filters. (I'm currently thinking
about ./tests in root directory which will just fire all available

4ed8718a 11/11/1999 01:27 PM Pavel Machek

Shift/reduce conflict goes away and if/then/else works.

1183b6b2 11/10/1999 01:59 PM Pavel Machek

Enums do not work, this is testcase.

cb8034f4 11/10/1999 01:44 PM Pavel Machek

First try on enumerational types.

Mj's noassoc removed: this brings back shift/reduce conflict but
it makes parser actually work. Mj please check it. IF/THEN/ELSE still
will not work.

2f702671 11/10/1999 01:07 PM Pavel Machek

No more shift/reduce conflicts.

49955645 11/10/1999 01:05 PM Martin Mares

Shift/reduce conflicts in IF/THEN/ELSE rules solved.

f4536657 11/10/1999 12:44 PM Pavel Machek

Enumerational types, defined keyword added.

3c989eb4 11/04/1999 02:05 PM Pavel Machek

Fixed comments about shift/reduce conflicts.

ae3e1af2 11/04/1999 02:03 PM Pavel Machek

Add possibility of local variables.

91447965 11/04/1999 01:33 PM Pavel Machek

Possibility to access first extended attributes.

6dc7a0cb 11/03/1999 10:23 PM Pavel Machek

Filters now do not allow function (int arg; int arg2; ).

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

switch() { } done right.

d3dd620b 10/12/1999 06:27 AM Pavel Machek

Filters: permit variables of prefix types, cleanup around
variables. TODO list added, hopefully complete. Use new features of
filters in bird.conf

720d911d 10/07/1999 02:10 PM Pavel Machek

Added constants of type prefix and pair, added their printing

c9f8c1a8 10/07/1999 01:38 PM Pavel Machek

FIXME's added. Hopefully fixme list is now complete for filters.

7db7b7db 09/29/1999 02:24 PM Pavel Machek

Case arg { 1: printf "one"; } works. You can not use two commands
after one label, yet.

29818140 08/20/1999 09:59 AM Pavel Machek

Few FIXME's removed from auth, few FIXME's added to filter.

9a706f32 08/03/1999 07:31 PM Martin Mares

Added missing structure declarations.

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.

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.

43fc099b 04/13/1999 11:40 AM Pavel Machek

Sets of IP addresses should work, now. (From now on it is also
possible to write if <, but I'm not sure if it is good
for anything.)

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.

bad631e0 04/12/1999 12:07 PM Pavel Machek

Oops, typo.