1
0
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:
Martin Mares
2000-01-17 11:52:50 +00:00
parent f7fcb75252
commit d272fe22dd
13 changed files with 35 additions and 15 deletions

View File

@@ -33,6 +33,7 @@ struct symbol;
struct protocol {
node n;
char *name;
char *template; /* Template for automatic generation of names */
unsigned debug; /* Default debugging flags */
int priority; /* Protocol priority (usually 0) */
int name_counter; /* Counter for automatic name generation */