diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-06-18 13:21:27 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 |
| commit | d9ff43027374621745f195352be8907ff3ad8393 (patch) | |
| tree | ce5bcedc50347b5c8cab31dd056cefa5aa54c917 /pimd/pim_pim.c | |
| parent | def31c1305673c29f6428a8a0eaea0dd40ea7000 (diff) | |
pimd: Add pim_errors and define some pim specific errors
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_pim.c')
| -rw-r--r-- | pimd/pim_pim.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index f506875282..6fb0b2892e 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -38,6 +38,7 @@ #include "pim_assert.h" #include "pim_msg.h" #include "pim_register.h" +#include "pim_errors.h" static int on_pim_hello_send(struct thread *t); static int pim_hello_send(struct interface *ifp, uint16_t holdtime); @@ -115,8 +116,9 @@ void pim_sock_delete(struct interface *ifp, const char *delete_message) delete_message); if (!ifp->info) { - zlog_err("%s: %s: but PIM not enabled on interface %s (!)", - __PRETTY_FUNCTION__, delete_message, ifp->name); + zlog_ferr(PIM_ERR_CONFIG, + "%s: %s: but PIM not enabled on interface %s (!)", + __PRETTY_FUNCTION__, delete_message, ifp->name); return; } |
