mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Added handling of STUB bool.
This commit is contained in:
parent
73089070e6
commit
8d94a524b6
@ -75,6 +75,7 @@ ospf_area_opts:
|
||||
|
||||
ospf_area_item:
|
||||
STUB COST expr { this_area->stub = $3 ; if($3<=0) cf_error("Stub cost must be greater than zero"); }
|
||||
| STUB bool {if($2) { if(!this_area->stub) this_area->stub=DEFAULT_STUB_COST;}else{ this_area->stub=0;}}
|
||||
| NETWORKS '{' pref_list '}'
|
||||
| INTERFACE ospf_iface_list
|
||||
| ospf_vlink
|
||||
|
@ -53,6 +53,7 @@
|
||||
|
||||
#define DEFAULT_OSPFTICK 1
|
||||
#define DEFAULT_RFC1583 0 /* compatibility with rfc1583 */
|
||||
#define DEFAULT_STUB_COST 1000
|
||||
|
||||
|
||||
struct ospf_config
|
||||
|
Loading…
Reference in New Issue
Block a user