summaryrefslogtreecommitdiff
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-05-20 09:19:34 +0000
committerhasso <hasso>2004-05-20 09:19:34 +0000
commite0701b7955b883c5437269a382e1afc76ee71e5c (patch)
treed00034c1b7f369fc8214d401b7a44ef586d73e15 /bgpd/bgp_fsm.c
parent62843e433d8f85bce381edc6202c4af6c5cec31b (diff)
Merge bgpd changeset 1176 from Zebra repository by Rivo Nurges.
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c30
1 files changed, 29 insertions, 1 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 5c8224c6..d28cd934 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -307,6 +307,33 @@ bgp_uptime_reset (struct peer *peer)
peer->uptime = time (NULL);
}
+/* BGP Peer Down Cause */
+char *peer_down_str[] =
+{
+ "",
+ "Router ID changed",
+ "Remote AS changed",
+ "Local AS change",
+ "Cluster ID changed",
+ "Confederation identifier changed",
+ "Confederation peer changed",
+ "RR client config change",
+ "RS client config change",
+ "Update source change",
+ "Address family activated",
+ "Admin. shutdown",
+ "User reset",
+ "BGP Notification received",
+ "BGP Notification send",
+ "Peer closed the session",
+ "Neighbor deleted",
+ "Peer-group add member",
+ "Peer-group delete member",
+ "Capability changed",
+ "Passive config change",
+ "Multihop config change"
+};
+
/* Administrative BGP peer stop event. */
int
bgp_stop (struct peer *peer)
@@ -325,7 +352,8 @@ bgp_stop (struct peer *peer)
/* bgp log-neighbor-changes of neighbor Down */
if (bgp_flag_check (peer->bgp, BGP_FLAG_LOG_NEIGHBOR_CHANGES))
- zlog_info ("%%ADJCHANGE: neighbor %s Down", peer->host);
+ zlog_info ("%%ADJCHANGE: neighbor %s Down %s", peer->host,
+ peer_down_str [(int) peer->last_reset]);
/* set last reset time */
peer->resettime = time (NULL);