summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_msg_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_msg_read.c')
-rw-r--r--bgpd/bgp_msg_read.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/bgpd/bgp_msg_read.c b/bgpd/bgp_msg_read.c
index 7e55bf70..664aed21 100644
--- a/bgpd/bgp_msg_read.c
+++ b/bgpd/bgp_msg_read.c
@@ -1411,14 +1411,19 @@ bgp_msg_keepalive_receive (bgp_connection connection, bgp_size_t body_size)
static void
bgp_msg_notify_receive (bgp_connection connection, bgp_size_t body_size)
{
+ bgp_notify notification ;
+
bgp_nom_code_t code = stream_getc (connection->ibuf);
bgp_nom_subcode_t subcode = stream_getc (connection->ibuf);
++connection->session->stats.notify_in ;
- bgp_fsm_notification_exception(connection,
- bgp_notify_new_with_data(code, subcode,
- stream_pnt(connection->ibuf), body_size - 2)) ;
+ notification = bgp_notify_new_with_data(code, subcode,
+ stream_pnt(connection->ibuf), body_size - 2) ;
+
+ bgp_notify_print(connection->session->peer, notification, 0) ; /* Logging */
+
+ bgp_fsm_notification_exception(connection, notification) ;
} ;
/*==============================================================================