diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 19:21:27 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | d9ff43027374621745f195352be8907ff3ad8393 (patch) | |
tree | ce5bcedc50347b5c8cab31dd056cefa5aa54c917 /pimd/pim_msdp_socket.c | |
parent | bgpd: Cleanup initialization of bgp_errors.c (diff) | |
download | frr-d9ff43027374621745f195352be8907ff3ad8393.tar.xz frr-d9ff43027374621745f195352be8907ff3ad8393.zip |
pimd: Add pim_errors and define some pim specific errors
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msdp_socket.c')
-rw-r--r-- | pimd/pim_msdp_socket.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_msdp_socket.c b/pimd/pim_msdp_socket.c index 5b1afb774..d5bd34557 100644 --- a/pimd/pim_msdp_socket.c +++ b/pimd/pim_msdp_socket.c @@ -30,6 +30,7 @@ #include "pimd.h" #include "pim_sock.h" +#include "pim_errors.h" #include "pim_msdp.h" #include "pim_msdp_socket.h" @@ -93,8 +94,9 @@ static int pim_msdp_sock_accept(struct thread *thread) if (!mp || !PIM_MSDP_PEER_IS_LISTENER(mp)) { ++pim->msdp.rejected_accepts; if (PIM_DEBUG_MSDP_EVENTS) { - zlog_err("msdp peer connection refused from %s", - sockunion2str(&su, buf, SU_ADDRSTRLEN)); + zlog_ferr(PIM_ERR_MSDP_PACKET, + "msdp peer connection refused from %s", + sockunion2str(&su, buf, SU_ADDRSTRLEN)); } close(msdp_sock); return -1; |