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.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/bgpd/bgp_msg_read.c b/bgpd/bgp_msg_read.c
index eca4697e..fbc163d7 100644
--- a/bgpd/bgp_msg_read.c
+++ b/bgpd/bgp_msg_read.c
@@ -158,7 +158,7 @@ bgp_msg_header_bad_len(bgp_connection connection, uint8_t type, bgp_size_t size)
connection->host, size,
bgp_type_name[bgp_type_map[type]]) ;
- bgp_fsm_general_exception(connection, bgp_session_eInvalid_msg,
+ bgp_fsm_exception(connection, bgp_session_eInvalid_msg,
bgp_notify_new_with_data(BGP_NOMC_HEADER, BGP_NOMS_H_BAD_LEN,
(void*)&notify_size, 2)) ;
} ;
@@ -181,7 +181,7 @@ bgp_msg_header_bad_type(bgp_connection connection, uint8_t type)
connection->host, bgp_type_name[bgp_type_map[type]]) ;
} ;
- bgp_fsm_general_exception(connection, bgp_session_eInvalid_msg,
+ bgp_fsm_exception(connection, bgp_session_eInvalid_msg,
bgp_notify_new_with_data(BGP_NOMC_HEADER, BGP_NOMS_H_BAD_TYPE,
(void*)&type, 1)) ;
} ;
@@ -246,7 +246,7 @@ bgp_msg_check_header(bgp_connection connection)
plog_debug (connection->log, "%s unknown message type 0x%02x",
connection->host, type);
- bgp_fsm_general_exception(connection, bgp_session_eInvalid_msg,
+ bgp_fsm_exception(connection, bgp_session_eInvalid_msg,
bgp_notify_new_with_data(BGP_NOMC_HEADER, BGP_NOMS_H_BAD_TYPE,
(void*)&type, 1)) ;
}
@@ -258,8 +258,8 @@ bgp_msg_check_header(bgp_connection connection)
}
else
{
- bgp_fsm_general_exception(connection, bgp_session_eInvalid_msg,
- bgp_notify_new(BGP_NOMC_HEADER, BGP_NOMS_H_NOT_SYNC, 0)) ;
+ bgp_fsm_exception(connection, bgp_session_eInvalid_msg,
+ bgp_notify_new(BGP_NOMC_HEADER, BGP_NOMS_H_NOT_SYNC)) ;
qt = qBGP_MT_unknown ; /* force unknown message */
size = BGP_MH_HEAD_L ; /* can stop reading, now */
} ;
@@ -323,7 +323,7 @@ bgp_msg_open_receive (bgp_connection connection, bgp_size_t body_size)
/* Start with an unspecific OPEN notification */
bgp_notify notification = bgp_notify_new(BGP_NOMC_OPEN,
- BGP_NOMS_UNSPECIFIC, 0) ;
+ BGP_NOMS_UNSPECIFIC) ;
/* To receive the parsed open message */
open_recv = connection->open_recv
@@ -511,7 +511,7 @@ bgp_msg_open_receive (bgp_connection connection, bgp_size_t body_size)
* Failed. Reject the OPEN with the required notification.
*/
reject:
- bgp_fsm_general_exception(connection, bgp_session_eOpen_reject, notification);
+ bgp_fsm_exception(connection, bgp_session_eOpen_reject, notification);
} ;
/*------------------------------------------------------------------------------
@@ -1524,8 +1524,8 @@ bgp_msg_route_refresh_receive(bgp_connection connection, bgp_size_t body_size)
if (ret < 0)
{
- bgp_fsm_general_exception(connection, bgp_session_eInvalid_msg,
- bgp_notify_new(BGP_NOMC_CEASE, BGP_NOMS_UNSPECIFIC, 0)) ;
+ bgp_fsm_exception(connection, bgp_session_eInvalid_msg,
+ bgp_notify_new(BGP_NOMC_CEASE, BGP_NOMS_UNSPECIFIC)) ;
return ;
}