From 42b3daa09cda8a4b80661177d3bf74b9258b0b88 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 5 Jun 2000 09:51:24 +0000 Subject: Description of protocol module moved to where it belongs. If documentation of standard modules is stored in their source, such auxilliary files should be as well. --- Doc | 2 +- TODO | 1 + doc/Doc | 1 + doc/prog-proto.sgml | 91 ----------------------------------------------------- nest/Doc | 2 +- nest/proto.sgml | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/progdoc | 8 ++--- 7 files changed, 99 insertions(+), 97 deletions(-) create mode 100644 doc/Doc delete mode 100644 doc/prog-proto.sgml create mode 100644 nest/proto.sgml diff --git a/Doc b/Doc index 57eeb78..f5f1508 100644 --- a/Doc +++ b/Doc @@ -1,4 +1,4 @@ -D prog-intro.sgml +C doc C nest C conf C filter diff --git a/TODO b/TODO index 08ec215..2226d0b 100644 --- a/TODO +++ b/TODO @@ -91,6 +91,7 @@ Martin: DOC: korektury OSPF: zkontrolovat defaultni hodnoty metrik Zinscenovat jeste jeden poradny test OSPF Zjistit, kde se bude tisknout a vazat dokumentace + DOC: Linux 2.2 je ten, kdo podporuje vice routing tables Pavel: RIP: programatorska dokumentace (finish) filtry: programatorska dokumentace diff --git a/doc/Doc b/doc/Doc new file mode 100644 index 0000000..0c3e04e --- /dev/null +++ b/doc/Doc @@ -0,0 +1 @@ +D prog-intro.sgml diff --git a/doc/prog-proto.sgml b/doc/prog-proto.sgml deleted file mode 100644 index 45ef88d..0000000 --- a/doc/prog-proto.sgml +++ /dev/null @@ -1,91 +0,0 @@ - - -Routing protocols - -Introduction - -

The routing protocols are the BIRD's heart and a fine amount of code -is dedicated to their management and for providing support functions to them. -(-: Actually, this is the reason why the directory with sources of the core -code is called When talking about protocols, one need to distinguish between A protocol is represented by a Each instance has its own The protocol hooks are described in the next chapter, for more information about -configuration of protocols, please refer to the configuration chapter and also -to the description of the Protocol states - -

As startup and shutdown of each protocol are complex processes which can be affected -by lots of external events (user's actions, reconfigurations, behaviour of neighboring routers etc.), -we have decided to supervise them by a pair of simple state machines -- the protocol -state machine and a core state machine. - -

The - - -

Unless the protocol is in the At any time, the core code can ask the protocol to shut down by calling its stop() hook. - -

The - - -Functions of the protocol module - -

The protocol module provides the following functions: diff --git a/nest/Doc b/nest/Doc index 7395e75..8cb7310 100644 --- a/nest/Doc +++ b/nest/Doc @@ -2,7 +2,7 @@ H Core S rt-fib.c S rt-table.c S rt-attr.c -D prog-proto.sgml +D proto.sgml S proto.c S proto-hooks.c S iface.c diff --git a/nest/proto.sgml b/nest/proto.sgml new file mode 100644 index 0000000..45ef88d --- /dev/null +++ b/nest/proto.sgml @@ -0,0 +1,91 @@ + + +Routing protocols + +Introduction + +

The routing protocols are the BIRD's heart and a fine amount of code +is dedicated to their management and for providing support functions to them. +(-: Actually, this is the reason why the directory with sources of the core +code is called When talking about protocols, one need to distinguish between A protocol is represented by a Each instance has its own The protocol hooks are described in the next chapter, for more information about +configuration of protocols, please refer to the configuration chapter and also +to the description of the Protocol states + +

As startup and shutdown of each protocol are complex processes which can be affected +by lots of external events (user's actions, reconfigurations, behaviour of neighboring routers etc.), +we have decided to supervise them by a pair of simple state machines -- the protocol +state machine and a core state machine. + +

The + + +

Unless the protocol is in the At any time, the core code can ask the protocol to shut down by calling its stop() hook. + +

The + + +Functions of the protocol module + +

The protocol module provides the following functions: diff --git a/tools/progdoc b/tools/progdoc index a5028bd..ef44d3a 100755 --- a/tools/progdoc +++ b/tools/progdoc @@ -3,15 +3,15 @@ $srcdir = $ARGV[0]; open(OUT, ">prog.sgml") || die "Cannot create output file"; -include("prog-head.sgml"); +include("doc/prog-head.sgml"); process(""); -include("prog-foot.sgml"); +include("doc/prog-foot.sgml"); close OUT; exit 0; sub include { my $f = shift @_; - open(IN, "$srcdir/doc/$f") || die "Unable to find $f"; + open(IN, "$srcdir/$f") || die "Unable to find $f"; while () { print OUT; } @@ -41,7 +41,7 @@ sub process { close DOC; } elsif ($cmd eq "D") { print " $arg\n"; - include($arg); + include("$dir/$arg"); } else { die "Unknown command: $cmd"; } } } -- cgit v1.2.3