]>
git.ipfire.org Git - thirdparty/bird.git/log
Martin Mares [Thu, 16 Dec 1999 12:18:33 +0000 (12:18 +0000)]
TODO entries and FIXME's.
Martin Mares [Thu, 16 Dec 1999 12:18:19 +0000 (12:18 +0000)]
Kicked off F_MODIFY (not generated nor used)
Martin Mares [Thu, 9 Dec 1999 18:54:20 +0000 (18:54 +0000)]
Added universal locking mechanism which will solve problems
with protocols wanting to use the same port on the same interface
during reconfiguration time.
How to use locks: In the if_notify hook, just order locks for the
interfaces you want to work with and do the real socket opening after the
lock hook function gets called. When you stop using the socket, close
it and rfree() the lock.
Please update your protocols to use the new locking mechanism.
Martin Mares [Wed, 8 Dec 1999 15:12:54 +0000 (15:12 +0000)]
Temporary work-arounds for multicast problems. Needs further investigation.
Martin Mares [Wed, 8 Dec 1999 14:16:13 +0000 (14:16 +0000)]
Except for special protocols (nowadays only the kernel syncer), don't
export host and link scope routes.
Pavel Machek [Wed, 8 Dec 1999 13:33:44 +0000 (13:33 +0000)]
Added hooks for show route.
Fixed passing metrics around routing tables.
Martin Mares [Wed, 8 Dec 1999 13:20:19 +0000 (13:20 +0000)]
- Path to control socket is selectable via command-line option.
- die() when control socket open failed.
Pavel Machek [Wed, 8 Dec 1999 12:51:45 +0000 (12:51 +0000)]
Fix timing and fix endianity in metrics.
Pavel Machek [Wed, 8 Dec 1999 12:51:26 +0000 (12:51 +0000)]
Disallow rta.net syntax.
Pavel Machek [Wed, 8 Dec 1999 12:51:15 +0000 (12:51 +0000)]
Put rip options into config file.
Pavel Machek [Wed, 8 Dec 1999 12:50:57 +0000 (12:50 +0000)]
Make bird.conf that does not crash machine when you run bird as root.
Pavel Machek [Wed, 8 Dec 1999 10:15:51 +0000 (10:15 +0000)]
Make rta. syntax optional.
Pavel Machek [Wed, 8 Dec 1999 10:15:40 +0000 (10:15 +0000)]
Separated bird.conf and bird.conf for testing filters.
Martin Mares [Mon, 6 Dec 1999 13:51:04 +0000 (13:51 +0000)]
Allow logging to stderr as well.
Martin Mares [Mon, 6 Dec 1999 13:50:50 +0000 (13:50 +0000)]
Added type `g' for void (general) pointer.
Martin Mares [Mon, 6 Dec 1999 13:45:56 +0000 (13:45 +0000)]
Logging is now configurable. You can define multiple log outputs (to both
files and syslog) and assign lists of message categories to each of them.
Martin Mares [Mon, 6 Dec 1999 13:44:45 +0000 (13:44 +0000)]
Moved initialization of protocol list to proto.c.
Added sysdep configuration hooks.
Martin Mares [Mon, 6 Dec 1999 13:43:47 +0000 (13:43 +0000)]
Added tracked_fopen() which is a fopen registered in resource database.
Will be used for log files.
Martin Mares [Mon, 6 Dec 1999 12:34:45 +0000 (12:34 +0000)]
Implemented echoing of log messages to CLI connections. Just try `echo all'.
Martin Mares [Sat, 4 Dec 1999 23:28:56 +0000 (23:28 +0000)]
Don't forget to send an OK reply after dumping debug information.
Martin Mares [Sat, 4 Dec 1999 23:17:29 +0000 (23:17 +0000)]
Added DEBUG commands.
Removed CLI tests, real commands now serve as much better examples.
Martin Mares [Fri, 3 Dec 1999 11:41:23 +0000 (11:41 +0000)]
Implemented `show static'. It's a relatively good example of how to write
show commands for other protocols.
Martin Mares [Fri, 3 Dec 1999 11:40:45 +0000 (11:40 +0000)]
Added proto_get_named() to be used in CLI commands to get protocol instance
of a given protocol with optionally given name. See `show static' for an
example.
Martin Mares [Fri, 3 Dec 1999 11:10:50 +0000 (11:10 +0000)]
Renamed SHOW PROTOCOLS VERBOSE to SHOW PROTOCOLS ALL to be consistent
with the other commands.
Martin Mares [Thu, 2 Dec 1999 14:04:44 +0000 (14:04 +0000)]
Implemented `show route where <condition>' command.
Pavel, please check my addition to filter/config.Y.
Martin Mares [Thu, 2 Dec 1999 14:03:25 +0000 (14:03 +0000)]
I tried to turn on the YYERROR_VERBOSE switch, but bison is buggy as hell,
so it doesn't even compile. Turned it again off and added a comment on it.
Martin Mares [Thu, 2 Dec 1999 12:04:39 +0000 (12:04 +0000)]
Avoid `default rule can be matched' warning in CLI state.
Martin Mares [Wed, 1 Dec 1999 15:17:24 +0000 (15:17 +0000)]
Updated TODO file.
Martin Mares [Wed, 1 Dec 1999 15:10:21 +0000 (15:10 +0000)]
Added dumping of routing tables (`show route'). This includes filtering.
Martin Mares [Wed, 1 Dec 1999 15:08:32 +0000 (15:08 +0000)]
Added get_route_info and show_route_data hooks to struct protocol.
Please implement them.
Martin Mares [Wed, 1 Dec 1999 15:07:56 +0000 (15:07 +0000)]
Reset temporary parser data before parsing, not afterwards. This enables
deferred CLI command handlers to store their temporary data in the CLI
parsing pool.
Martin Mares [Wed, 1 Dec 1999 15:07:06 +0000 (15:07 +0000)]
Make ACCEPT/REJECT actually return the result...
Pavel Machek [Wed, 1 Dec 1999 13:44:42 +0000 (13:44 +0000)]
Stupid bug (essentially while(1) loop) occuring sometimes during start
of bird fixed.
Pavel Machek [Wed, 1 Dec 1999 12:54:23 +0000 (12:54 +0000)]
accept should behave as return, not running any commands after it.
Pavel Machek [Wed, 1 Dec 1999 12:52:57 +0000 (12:52 +0000)]
Actually check sequence numbers.
Martin Mares [Wed, 1 Dec 1999 12:01:41 +0000 (12:01 +0000)]
Implemented get_status for the pipe protocol (reports name of the other
side of the pipe).
Please do so for your protocols as well.
Martin Mares [Wed, 1 Dec 1999 12:00:15 +0000 (12:00 +0000)]
`show protocols' now shows time of last state change and protocol-dependent
status information (obtained via newly introduced hook protocol->get_status).
Martin Mares [Wed, 1 Dec 1999 11:59:24 +0000 (11:59 +0000)]
Introduced new protocol-dependent integer field `aux' to struct neighbor.
Martin Mares [Wed, 1 Dec 1999 11:59:00 +0000 (11:59 +0000)]
Added tm_format_reltime() for formatting of relative time quantities.
Pavel Machek [Wed, 1 Dec 1999 11:39:58 +0000 (11:39 +0000)]
FIXME's cleaned up: I have actually fixed things without killing
comments.
There are no urgent FIXME's in filters. Perhaps we should start with
documentation?
Martin Mares [Wed, 1 Dec 1999 10:28:39 +0000 (10:28 +0000)]
Use linux-22 configuration with all 2.2.x and 2.3.x kernels. This means
you need to have your kernel compiled with netlink routing messages enabled.
If it doesn't work for you, use --with-sysconfig=linux-21 and let me know
what's going wrong.
Martin Mares [Tue, 30 Nov 1999 14:04:09 +0000 (14:04 +0000)]
Remember protocol instance in proto_config and use that for
`show protocols <name>'.
Martin Mares [Tue, 30 Nov 1999 14:03:36 +0000 (14:03 +0000)]
Lexer supports fallback symbol tables and uses them to recognize
symbols from global config when parsing CLI commands.
cf_lex_init_tables() is now called automatically inside the lexer.
Martin Mares [Tue, 30 Nov 1999 14:02:27 +0000 (14:02 +0000)]
Use TIME_INFINITY for initialization of password entries instead
of
2000000000 (BTW who wrote that???)
Martin Mares [Tue, 30 Nov 1999 14:01:39 +0000 (14:01 +0000)]
Moved TIME_INFINITY to timer.h, so that it's publicly available.
Martin Mares [Tue, 30 Nov 1999 12:57:14 +0000 (12:57 +0000)]
`show interfaces' and `show protocols' works.
Martin Mares [Tue, 30 Nov 1999 12:56:52 +0000 (12:56 +0000)]
Don't use continuation shortcuts until real client is written.
Ondrej Filip [Tue, 30 Nov 1999 10:35:26 +0000 (10:35 +0000)]
Inicialisation of Topology Graph (TG).
Martin Mares [Thu, 25 Nov 1999 15:35:30 +0000 (15:35 +0000)]
Added few basic commands: show status, show interfaces [summary],
show protocols (incomplete).
Martin Mares [Thu, 25 Nov 1999 15:34:51 +0000 (15:34 +0000)]
cli_msg() moved to cli.h, so that it can be used outside the parser.
Martin Mares [Thu, 25 Nov 1999 15:34:20 +0000 (15:34 +0000)]
Added ip_scope_text() for translating of scopes to strings.
Pavel Machek [Thu, 25 Nov 1999 15:03:12 +0000 (15:03 +0000)]
md5 authentication seems to work.
Pavel Machek [Thu, 25 Nov 1999 14:54:08 +0000 (14:54 +0000)]
Bugfixes: select right password for password authentication, do not
try to process authentication blocks as datablocks, make it possible
to add data at end of packet. Password authentication should actually work.
Pavel Machek [Thu, 25 Nov 1999 13:42:49 +0000 (13:42 +0000)]
Filters: fix rta access to use ->aux field.
Pavel Machek [Thu, 25 Nov 1999 13:38:25 +0000 (13:38 +0000)]
Triggered updates should now actually work. Fixed metric=16 -> time it
out logic.
Pavel Machek [Thu, 25 Nov 1999 12:01:45 +0000 (12:01 +0000)]
Fix timeouts. Triggered updates are not done, yet.
Pavel Machek [Wed, 24 Nov 1999 12:16:31 +0000 (12:16 +0000)]
Check that prefixes are really prefixes + fix config file to
comply. (:-( 1.2.3.4/8 looks nicer than 1.0.0.0/8).
Pavel Machek [Wed, 24 Nov 1999 12:09:58 +0000 (12:09 +0000)]
Sorry, previous commit did not even compile.
Pavel Machek [Wed, 24 Nov 1999 12:04:32 +0000 (12:04 +0000)]
Filters: write access to dynamic attributes should actually work. It
would be nice to find method of testing such beasts.
Martin Mares [Thu, 18 Nov 1999 14:41:43 +0000 (14:41 +0000)]
More CLI plans...
Martin Mares [Thu, 18 Nov 1999 14:41:29 +0000 (14:41 +0000)]
Allow EA type to be set to 'undefined' which overrides all further definitons
of that EA in the same list and causes ea_find() to fail unless you add
EA_ALLOW_UNDEF to the second argument.
ea_sort (resp. ea_do_prune()) removes all undef'd attributes from the list.
I hope this works :)
Pavel Machek [Thu, 18 Nov 1999 14:29:10 +0000 (14:29 +0000)]
Filters: first parts of extended attributes being read-write. It can
not actually work since I do not do rta/rte cow, yet.
Pavel Machek [Thu, 18 Nov 1999 14:01:36 +0000 (14:01 +0000)]
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.
Martin Mares [Thu, 18 Nov 1999 13:42:51 +0000 (13:42 +0000)]
DEF_PREF_UKR and DEF_PREF_SINK removed.
Pavel Machek [Thu, 18 Nov 1999 13:21:52 +0000 (13:21 +0000)]
You can now print enum.
Ondrej Filip [Wed, 17 Nov 1999 15:50:41 +0000 (15:50 +0000)]
ospf.c and ospc.h splitted into various files.
Martin Mares [Wed, 17 Nov 1999 14:58:21 +0000 (14:58 +0000)]
Added skeleton of command tree. Please inspect.
Ondrej Filip [Wed, 17 Nov 1999 13:28:51 +0000 (13:28 +0000)]
Another bugfix. (In EXCHANGE state.)
Ondrej Filip [Wed, 17 Nov 1999 13:15:01 +0000 (13:15 +0000)]
Fixed bug receiving dbdes packets in EXSTART state.
Martin Mares [Wed, 17 Nov 1999 12:14:44 +0000 (12:14 +0000)]
Added some temporary examples of how to define CLI commands (search for CF_CLI).
To define a new command, just add a new rule to the gramar:
CF_CLI(COMMAND NAME, arguments, help-args, help-text) {
what-should-the-command-do
} ;
where <arguments> are appended to the RHS of the rule, <help-args> is the
argument list as shown in the help and <help-text> is description of the
command for the help.
<what-should-the-command-do> is a C code snippet to be executed. It should
not take too much time to execute. If you want to print out a lot of
information, you can schedule a routine to be called after the current
buffer is flushed by making cli->cont point to the routine (see the
TEST LONG command definition for an example); if the connection is closed
in the meantime, cli->cleanup gets called.
You can access `struct cli' belonging to the connection you're currently
servicing as this_cli, but only during parse time, not from routines scheduled
for deferred execution.
Functions to call inside command handlers:
cli_printf(cli, code, printf-args) -- print text to CLI connection,
<code> is message code as assigned in doc/reply_codes or a negative
one if it's a continuation line.
cli_msg(code, printf-args) -- the same for this_cli.
Use 'sock -x bird.ctl' for connecting to the CLI until a client is written.
Martin Mares [Wed, 17 Nov 1999 12:04:24 +0000 (12:04 +0000)]
If the main event queue is not empty, call select() with zero timeout, so
that the events are ran again after the FD's are checked. This allows us
to schedule I/O checks between processing of user commands.
Martin Mares [Wed, 17 Nov 1999 12:01:11 +0000 (12:01 +0000)]
ev_run() now returns whether the event has been requeued or not.
ev_run_list() now returns number of events which remain in the list.
Martin Mares [Wed, 17 Nov 1999 12:00:21 +0000 (12:00 +0000)]
Command line interface now works.
Martin Mares [Wed, 17 Nov 1999 11:16:15 +0000 (11:16 +0000)]
Commented out nexthop selection, see the comment.
Martin Mares [Mon, 15 Nov 1999 11:36:22 +0000 (11:36 +0000)]
An example of how to define enums.
Martin Mares [Mon, 15 Nov 1999 11:36:09 +0000 (11:36 +0000)]
ENUM's are now recognized as constants.
Martin Mares [Mon, 15 Nov 1999 11:35:41 +0000 (11:35 +0000)]
Defined CF_ENUM.
Martin Mares [Mon, 15 Nov 1999 11:34:51 +0000 (11:34 +0000)]
SYM_STAT is gone.
Pavel Machek [Thu, 11 Nov 1999 13:55:39 +0000 (13:55 +0000)]
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
tests...)
Pavel Machek [Thu, 11 Nov 1999 13:27:59 +0000 (13:27 +0000)]
Shift/reduce conflict goes away _and_ if/then/else works.
Ondrej Filip [Wed, 10 Nov 1999 16:06:12 +0000 (16:06 +0000)]
Sending DBDES packet in EXSTART done.
Pavel Machek [Wed, 10 Nov 1999 13:59:13 +0000 (13:59 +0000)]
Enums do not work, this is testcase.
Pavel Machek [Wed, 10 Nov 1999 13:44:29 +0000 (13:44 +0000)]
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.
Pavel Machek [Wed, 10 Nov 1999 13:07:18 +0000 (13:07 +0000)]
No more shift/reduce conflicts.
Martin Mares [Wed, 10 Nov 1999 13:05:57 +0000 (13:05 +0000)]
Shift/reduce conflicts in IF/THEN/ELSE rules solved.
Pavel Machek [Wed, 10 Nov 1999 12:44:07 +0000 (12:44 +0000)]
Enumerational types, defined keyword added.
Martin Mares [Wed, 10 Nov 1999 12:27:01 +0000 (12:27 +0000)]
Added LSA hashing table (parts of code stolen from rt-fib.c, but
heavily simplified since we don't need asynchronous walking).
Pavel Machek [Wed, 10 Nov 1999 11:52:36 +0000 (11:52 +0000)]
Added timeout for routes (which means proper expiring of routes) added
few fixmes.
Martin Mares [Wed, 10 Nov 1999 10:48:19 +0000 (10:48 +0000)]
Added project status report for KSVI.
Pavel Machek [Thu, 4 Nov 1999 14:39:51 +0000 (14:39 +0000)]
FIXME's updated. One fixme is remaining for correct RIPv4. Wow.
Pavel Machek [Thu, 4 Nov 1999 14:26:18 +0000 (14:26 +0000)]
Reject packets which are not authenticated.
Set correct nexthop on outgoing packets.
Pavel Machek [Thu, 4 Nov 1999 14:05:40 +0000 (14:05 +0000)]
Fixed comments about shift/reduce conflicts.
Pavel Machek [Thu, 4 Nov 1999 14:03:45 +0000 (14:03 +0000)]
Add possibility of local variables.
Pavel Machek [Thu, 4 Nov 1999 14:03:36 +0000 (14:03 +0000)]
Use local variables to test that functionality.
Martin Mares [Thu, 4 Nov 1999 13:53:47 +0000 (13:53 +0000)]
Silly bug.
Martin Mares [Thu, 4 Nov 1999 13:51:52 +0000 (13:51 +0000)]
Symbols are not scoped.
Pavel Machek [Thu, 4 Nov 1999 13:33:30 +0000 (13:33 +0000)]
Possibility to access first extended attributes.
Martin Mares [Thu, 4 Nov 1999 13:29:43 +0000 (13:29 +0000)]
Renamed attr->attrs to attr->eattrs.
Pavel Machek [Wed, 3 Nov 1999 22:23:01 +0000 (22:23 +0000)]
Filters now do not allow function (int arg; int arg2; ).
Pavel Machek [Wed, 3 Nov 1999 22:21:26 +0000 (22:21 +0000)]
You should not follow next two times.