diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-17 11:52:50 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-17 11:52:50 +0000 |
commit | d272fe22dddcb5c293d6aac18d36e3e3e66406a5 (patch) | |
tree | 20710583efb431b87ce836c068825dc12be7f0d2 /proto/ospf/ospf.c | |
parent | f7fcb752520759ab3aed274ca608e8e6f96665c8 (diff) |
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.
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r-- | proto/ospf/ospf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index db773369..e8704a7f 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -90,6 +90,7 @@ ospf_postconfig(struct proto_config *c) struct protocol proto_ospf = { name: "OSPF", + template: "ospf%d", init: ospf_init, dump: ospf_dump, start: ospf_start, |