From 3fdbafb6f49946f15d0c10d311dd35479bf6c0f1 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 30 Mar 2000 10:44:20 +0000 Subject: More BGP. This time it connects, but the state machine still isn't complete. --- proto/bgp/config.Y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'proto/bgp/config.Y') diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y index f50b060..42f9136 100644 --- a/proto/bgp/config.Y +++ b/proto/bgp/config.Y @@ -15,7 +15,7 @@ CF_HDR CF_DECLS CF_KEYWORDS(BGP, LOCAL, NEIGHBOR, AS, HOLD, TIME, CONNECT, RETRY, KEEPALIVE, - MULTIHOP) + MULTIHOP, STARTUP) CF_GRAMMAR @@ -26,7 +26,7 @@ bgp_proto_start: proto_start BGP { this_proto->preference = DEF_PREF_BGP; BGP_CFG->hold_time = 240; BGP_CFG->connect_retry_time = 120; - BGP_CFG->keepalive_time = 30; + BGP_CFG->initial_hold_time = 300; } ; @@ -43,6 +43,7 @@ bgp_proto: BGP_CFG->remote_as = $5; } | bgp_proto HOLD TIME NUM ';' { BGP_CFG->hold_time = $4; } + | bgp_proto STARTUP HOLD TIME NUM ';' { BGP_CFG->initial_hold_time = $5; } | bgp_proto CONNECT RETRY TIME NUM ';' { BGP_CFG->connect_retry_time = $5; } | bgp_proto KEEPALIVE TIME NUM ';' { BGP_CFG->connect_retry_time = $4; } | bgp_proto MULTIHOP NUM ';' { BGP_CFG->multihop = $3; } -- cgit v1.2.3