mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Separated `official protocol names' used in status dumps from name templates
used for automatic generation of instance names. protocol->name is the official name protocol->template is the name template (usually "name%d"), should be all lowercase. Updated all protocols to define the templates, checked that their configuration grammar includes proto_name which generates the name and interns it in the symbol table.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* BIRD -- Static Route Generator
|
||||
*
|
||||
* (c) 1998--1999 Martin Mares <mj@ucw.cz>
|
||||
* (c) 1998--2000 Martin Mares <mj@ucw.cz>
|
||||
*
|
||||
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||
*/
|
||||
@@ -175,11 +175,19 @@ static_init(struct proto_config *c)
|
||||
return p;
|
||||
}
|
||||
|
||||
static int
|
||||
static_reconfigure(struct proto *p, struct proto_config *new)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct protocol proto_static = {
|
||||
name: "Static",
|
||||
template: "static%d",
|
||||
init: static_init,
|
||||
dump: static_dump,
|
||||
start: static_start,
|
||||
reconfigure: static_reconfigure,
|
||||
};
|
||||
|
||||
static void
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* BIRD -- Static Route Generator
|
||||
*
|
||||
* (c) 1998 Martin Mares <mj@ucw.cz>
|
||||
* (c) 1998--2000 Martin Mares <mj@ucw.cz>
|
||||
*
|
||||
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user