[pakcage] simplify action handling in rc.common (#5558)
[openwrt.git] / package / openwrt-packages / net / quagga-unstable / patches / 140-holdtimer-set.patch
1 --- a/bgpd/bgp_network.c
2 +++ b/bgpd/bgp_network.c
3 @@ -185,8 +185,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 @@ -709,6 +709,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
This page took 0.040441 seconds and 5 git commands to generate.