From: Quentin Young Date: Thu, 13 Sep 2018 19:14:28 +0000 (+0000) Subject: ripd: RIP_[ERR|WARN] -> EC_RIP X-Git-Tag: frr-7.1-dev~365^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=993c8024ff91d50332afaa611af4bc65a7b17afa;p=mirror%2Ffrr.git ripd: RIP_[ERR|WARN] -> EC_RIP Signed-off-by: Quentin Young --- diff --git a/ripd/rip_errors.c b/ripd/rip_errors.c index 363b1b7fb5..9c089a0540 100644 --- a/ripd/rip_errors.c +++ b/ripd/rip_errors.c @@ -25,7 +25,7 @@ static struct log_ref ferr_rip_err[] = { { - .code = RIP_ERR_PACKET, + .code = EC_RIP_PACKET, .title = "RIP Packet Error", .description = "RIP has detected a packet encode/decode issue", .suggestion = "Gather log files from both sides and open a Issue" diff --git a/ripd/rip_errors.h b/ripd/rip_errors.h index 6b5f5c0169..feadf430ef 100644 --- a/ripd/rip_errors.h +++ b/ripd/rip_errors.h @@ -24,7 +24,7 @@ #include "lib/ferr.h" enum rip_log_refs { - RIP_ERR_PACKET = RIP_FERR_START, + EC_RIP_PACKET = RIP_FERR_START, RIP_ERR_CONFIG, }; diff --git a/ripd/ripd.c b/ripd/ripd.c index 560e649a89..8d3a0798f5 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1056,7 +1056,7 @@ static void rip_auth_md5_set(struct stream *s, struct rip_interface *ri, /* Check packet length. */ if (len < (RIP_HEADER_SIZE + RIP_RTE_SIZE)) { - flog_err(RIP_ERR_PACKET, + flog_err(EC_RIP_PACKET, "rip_auth_md5_set(): packet length %ld is less than minimum length.", len); return;