[packages] quagga: Set BGP Hold Timer to a large value on OpenSent state (RFC1771...
[openwrt/svn-archive/archive.git] / net / quagga / patches / 140-holdtimer-set.patch
1 diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
2 index df37783..c4d5a61 100644
3 --- a/bgpd/bgp_network.c
4 +++ b/bgpd/bgp_network.c
5 @@ -109,6 +109,7 @@ bgp_accept (struct thread *thread)
6 peer->fd = bgp_sock;
7 peer->status = Active;
8 peer->local_id = peer1->local_id;
9 + peer->v_holdtime = BGP_LARGE_HOLDTIME;
10
11 /* Make peer's address string. */
12 sockunion2str (&su, buf, SU_ADDRSTRLEN);
13 diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
14 index 4137baf..8615ac8 100644
15 --- a/bgpd/bgpd.h
16 +++ b/bgpd/bgpd.h
17 @@ -656,6 +656,7 @@ struct bgp_nlri
18 /* BGP timers default value. */
19 #define BGP_INIT_START_TIMER 5
20 #define BGP_ERROR_START_TIMER 30
21 +#define BGP_LARGE_HOLDTIME 240
22 #define BGP_DEFAULT_HOLDTIME 180
23 #define BGP_DEFAULT_KEEPALIVE 60
24 #define BGP_DEFAULT_ASORIGINATE 15