summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-19 20:42:55 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit02705213b15f54b8601cd172e1b7123930575f86 (patch)
tree8ba4cb32a83e12ee1cfed65c914ffef1c6f2277f /bgpd/bgp_fsm.c
parentzebra, lib: error references for zebra (diff)
downloadfrr-02705213b15f54b8601cd172e1b7123930575f86.tar.xz
frr-02705213b15f54b8601cd172e1b7123930575f86.zip
bgpd: Convert to using LIB_ERR_XXX where possible
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index dc51aa981..e12bf2792 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -34,6 +34,7 @@
#include "queue.h"
#include "filter.h"
#include "command.h"
+#include "lib_errors.h"
#include "lib/json.h"
#include "bgpd/bgpd.h"
@@ -245,7 +246,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer)
if (bgp_getsockname(peer) < 0) {
zlog_ferr(
- BGP_ERR_SOCKET,
+ LIB_ERR_SOCKET,
"%%bgp_getsockname() failed for %s peer %s fd %d (from_peer fd %d)",
(CHECK_FLAG(peer->sflags, PEER_STATUS_ACCEPT_PEER)
? "accept"
@@ -258,7 +259,7 @@ static struct peer *peer_xfer_conn(struct peer *from_peer)
if (from_peer->status > Active) {
if (bgp_getsockname(from_peer) < 0) {
zlog_ferr(
- BGP_ERR_SOCKET,
+ LIB_ERR_SOCKET,
"%%bgp_getsockname() failed for %s from_peer %s fd %d (peer fd %d)",
(CHECK_FLAG(from_peer->sflags,
@@ -1293,7 +1294,7 @@ static int bgp_connect_success(struct peer *peer)
}
if (bgp_getsockname(peer) < 0) {
- zlog_ferr(BGP_ERR_SOCKET,
+ zlog_ferr(LIB_ERR_SOCKET,
"%s: bgp_getsockname(): failed for peer %s, fd %d",
__FUNCTION__, peer->host, peer->fd);
bgp_notify_send(peer, BGP_NOTIFY_FSM_ERR,