No description
Find a file
Martin Mares 62a4639548 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.
1999-11-17 12:14:44 +00:00
client Added skeleton of the client. Does nothing, but at least compiles. 1999-10-29 09:44:44 +00:00
conf Command line interface now works. 1999-11-17 12:00:21 +00:00
doc Added project status report for KSVI. 1999-11-10 10:48:19 +00:00
filter ENUM's are now recognized as constants. 1999-11-15 11:36:09 +00:00
lib ev_run() now returns whether the event has been requeued or not. 1999-11-17 12:01:11 +00:00
misc Variance estimation fixed. 1998-12-19 21:53:28 +00:00
nest Added some temporary examples of how to define CLI commands (search for CF_CLI). 1999-11-17 12:14:44 +00:00
proto Commented out nexthop selection, see the comment. 1999-11-17 11:16:15 +00:00
sysdep If the main event queue is not empty, call select() with zero timeout, so 1999-11-17 12:04:24 +00:00
tools The CLI I/O functions work as desired. 1999-10-31 15:43:44 +00:00
.cvsignore Added bird.conf to .cvsignore and created an example configuration file. 1999-01-15 17:18:41 +00:00
aclocal.m4 Cosmetic message fix. 1999-04-12 17:27:21 +00:00
bird.conf Enums do not work, this is testcase. 1999-11-10 13:59:13 +00:00
configure.in Configure PATH_CONTROL_SOCKET. 1999-10-29 10:08:09 +00:00
Makefile switch() { } done right. 1999-10-28 21:03:36 +00:00
TODO Basic support for IPv6. The system-dependent part doesn't work yet, 1999-08-03 19:36:06 +00:00