modernize backfire 10.03 so it can be operational again
[openwrt-10.03/.git] / package / quagga / not-patches / patches-upstream / old / 140-holdtimer-set.patch
1 --- a/bgpd/bgp_network.c
2 +++ b/bgpd/bgp_network.c
3 @@ -256,8 +256,7 @@ bgp_accept (struct thread *thread)
4      peer->fd = bgp_sock;
5      peer->status = Active;
6      peer->local_id = peer1->local_id;
7 -    peer->v_holdtime = peer1->v_holdtime;
8 -    peer->v_keepalive = peer1->v_keepalive;
9 +    peer->v_holdtime = BGP_LARGE_HOLDTIME;
10  
11      /* Make peer's address string. */
12      sockunion2str (&su, buf, SU_ADDRSTRLEN);
13 --- a/bgpd/bgpd.h
14 +++ b/bgpd/bgpd.h
15 @@ -739,6 +739,7 @@ struct bgp_nlri
16  /* BGP timers default value.  */
17  #define BGP_INIT_START_TIMER                     5
18  #define BGP_ERROR_START_TIMER                   30
19 +#define BGP_LARGE_HOLDTIME                     240
20  #define BGP_DEFAULT_HOLDTIME                   180
21  #define BGP_DEFAULT_KEEPALIVE                   60 
22  #define BGP_DEFAULT_ASORIGINATE                 15