]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: PIM_[ERR|WARN] -> EC_PIM
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 13 Sep 2018 19:12:58 +0000 (19:12 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 13 Sep 2018 19:12:58 +0000 (19:12 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
pimd/pim_errors.c
pimd/pim_errors.h
pimd/pim_msdp_packet.c
pimd/pim_msdp_socket.c
pimd/pim_pim.c

index d154752bdc0d506879bf9e3e4aa3a59b00f41dcc..0674a4e99477f2b3fd2cb6cd3d34481afb5886f1 100644 (file)
 /* clang-format off */
 static struct log_ref ferr_pim_err[] = {
        {
-               .code = PIM_ERR_MSDP_PACKET,
+               .code = EC_PIM_MSDP_PACKET,
                .title = "PIM MSDP Packet Error",
                .description = "PIM has received a packet from a peer that does not correctly decode",
                .suggestion = "Check MSDP peer and ensure it is correctly working"
        },
        {
-               .code = PIM_ERR_CONFIG,
+               .code = EC_PIM_CONFIG,
                .title = "PIM Configuration Error",
                .description = "PIM has detected a configuration error",
                .suggestion = "Ensure the configuration is correct and apply correct configuration"
index ad9c95a93d30633167de215193393e7be42c55cd..d73caa3f8f71fa8baef2b27be8be6de8ba385b6e 100644 (file)
@@ -24,8 +24,8 @@
 #include "lib/ferr.h"
 
 enum pim_log_refs {
-       PIM_ERR_MSDP_PACKET = PIM_FERR_START,
-       PIM_ERR_CONFIG,
+       EC_PIM_MSDP_PACKET = PIM_FERR_START,
+       EC_PIM_CONFIG,
 };
 
 extern void pim_error_init(void);
index 65232aafa22e178877ccad9f0ab16276295480b0..7875f05c985e6cacbab952128cb5fdd76a6bf314 100644 (file)
@@ -484,7 +484,7 @@ static void pim_msdp_pkt_sa_rx_one(struct pim_msdp_peer *mp, struct in_addr rp)
 
        if (prefix_len != 32) {
                /* ignore SA update if the prefix length is not 32 */
-               flog_err(PIM_ERR_MSDP_PACKET,
+               flog_err(EC_PIM_MSDP_PACKET,
                          "rxed sa update with invalid prefix length %d",
                          prefix_len);
                return;
index feac42cf535d1c08d19e6b294da9b0aa8aabb364..4271f5e616f72ddd0d837c815cdd689b97ee3e6a 100644 (file)
@@ -95,7 +95,7 @@ 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) {
-                       flog_err(PIM_ERR_MSDP_PACKET,
+                       flog_err(EC_PIM_MSDP_PACKET,
                                  "msdp peer connection refused from %s",
                                  sockunion2str(&su, buf, SU_ADDRSTRLEN));
                }
index cf078064d8ac8497afe513e0ec9056127c54102b..c5410eef2a8e516c2dc6ea700a79f1f7a32e973f 100644 (file)
@@ -116,7 +116,7 @@ void pim_sock_delete(struct interface *ifp, const char *delete_message)
                  delete_message);
 
        if (!ifp->info) {
-               flog_err(PIM_ERR_CONFIG,
+               flog_err(EC_PIM_CONFIG,
                          "%s: %s: but PIM not enabled on interface %s (!)",
                          __PRETTY_FUNCTION__, delete_message, ifp->name);
                return;