From b8f17cf1923ff5894b6689479f7fb7d008b8ce44 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 6 Jun 2004 16:00:09 +0000 Subject: Small cleanup, indentation and preparation for multiple areas routing table calculation. --- proto/ospf/config.Y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'proto/ospf/config.Y') diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index 5b4f1ac..f92109e 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -38,6 +38,7 @@ ospf_proto_start: proto_start OSPF { this_proto->preference = DEF_PREF_OSPF; init_list(&OSPF_CFG->area_list); OSPF_CFG->rfc1583 = DEFAULT_RFC1583; + OSPF_CFG->tick = DEFAULT_OSPFTICK; } ; @@ -49,6 +50,7 @@ ospf_proto: ospf_proto_item: proto_item | RFC1583COMPAT bool ';' { OSPF_CFG->rfc1583 = $2; } + | TICK expr { OSPF_CFG->tick = $2 ; if($2<=0) cf_error("Tick must be greater than zero"); } | ospf_area '}' ; @@ -56,7 +58,7 @@ ospf_area_start: AREA idval '{' { this_area = cfg_allocz(sizeof(struct ospf_area_config)); add_tail(&OSPF_CFG->area_list, NODE this_area); this_area->areaid = $2; - this_area->tick = DEFAULT_DISPTICK; + this_area->tick = DEFAULT_AREATICK; this_area->stub = 0; init_list(&this_area->patt_list); init_list(&this_area->net_list); -- cgit v1.2.3