mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Implements protocol templates.
Based on the patch from Alexander V. Chernikov. Extended to support almost all protocols. Uses 'protocol bgp NAME from TEMPLATE { ... }' syntax.
This commit is contained in:
@@ -128,7 +128,7 @@ CF_GRAMMAR
|
||||
CF_ADDTO(proto, ospf_proto '}' { ospf_proto_finish(); } )
|
||||
|
||||
ospf_proto_start: proto_start OSPF {
|
||||
this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config));
|
||||
this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config), $1);
|
||||
this_proto->preference = DEF_PREF_OSPF;
|
||||
init_list(&OSPF_CFG->area_list);
|
||||
init_list(&OSPF_CFG->vlink_list);
|
||||
|
@@ -85,8 +85,8 @@ struct ospf_config
|
||||
byte rfc1583;
|
||||
byte abr;
|
||||
int ecmp;
|
||||
list area_list;
|
||||
list vlink_list;
|
||||
list area_list; /* list of struct ospf_area_config */
|
||||
list vlink_list; /* list of struct ospf_iface_patt */
|
||||
};
|
||||
|
||||
struct nbma_node
|
||||
|
Reference in New Issue
Block a user