summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_peer.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2010-01-27 16:11:25 +0000
committerpaulo <paul@bayleaf.org.uk>2010-01-27 16:11:25 +0000
commite6d986058f23f350aa6aedac4da5fe9f3afda6e8 (patch)
tree717e0dd247f4aeacae83c0878830fc910ff99a82 /bgpd/bgp_peer.c
parent6503ce4cef43d8fe4da510fe9c55911c4af296e9 (diff)
downloadquagga-e6d986058f23f350aa6aedac4da5fe9f3afda6e8.tar.bz2
quagga-e6d986058f23f350aa6aedac4da5fe9f3afda6e8.tar.xz
Wite route refresh received. Hive off statistics into separate struct.
Diffstat (limited to 'bgpd/bgp_peer.c')
-rw-r--r--bgpd/bgp_peer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/bgpd/bgp_peer.c b/bgpd/bgp_peer.c
index 3dec683a..1a1d95de 100644
--- a/bgpd/bgp_peer.c
+++ b/bgpd/bgp_peer.c
@@ -424,18 +424,12 @@ bgp_peer_stop (struct peer *peer)
peer->v_holdtime = peer->bgp->default_holdtime;
}
- peer->update_time = 0;
-
- /* Until we are sure that there is no problem about prefix count
- this should be commented out.*/
-#if 0
/* Reset prefix count */
peer->pcount[AFI_IP][SAFI_UNICAST] = 0;
peer->pcount[AFI_IP][SAFI_MULTICAST] = 0;
peer->pcount[AFI_IP][SAFI_MPLS_VPN] = 0;
peer->pcount[AFI_IP6][SAFI_UNICAST] = 0;
peer->pcount[AFI_IP6][SAFI_MULTICAST] = 0;
-#endif /* 0 */
return 0;
}
@@ -509,6 +503,7 @@ bgp_timer_set (struct peer *peer)
case bgp_peer_sClearing:
BGP_TIMER_OFF (peer->t_asorig);
BGP_TIMER_OFF (peer->t_routeadv);
+ break;
default:
assert(0);
}