]> git.puffer.fish Git - mirror/frr.git/commitdiff
pim6d: remove unused variable neigh_src_str
authorsarita patra <saritap@vmware.com>
Wed, 27 Apr 2022 10:27:24 +0000 (03:27 -0700)
committerSarita Patra <saritap@vmware.com>
Thu, 7 Jul 2022 17:56:45 +0000 (10:56 -0700)
Signed-off-by: sarita patra <saritap@vmware.com>
pimd/pim_bsm.c

index b6fdf92f8bec21f84d2a1ca9b553f86d8f5f9478..6ea67fbefe31a93eacf6e6f1212f1b84583f9feb 100644 (file)
@@ -934,7 +934,6 @@ bool pim_bsm_new_nbr_fwd(struct pim_neighbor *neigh, struct interface *ifp)
        struct pim_interface *pim_ifp;
        struct bsm_scope *scope;
        struct bsm_frag *bsfrag;
-       char neigh_src_str[INET_ADDRSTRLEN];
        uint32_t pim_mtu;
        bool no_fwd = true;
        bool ret = false;
@@ -972,13 +971,13 @@ bool pim_bsm_new_nbr_fwd(struct pim_neighbor *neigh, struct interface *ifp)
        if (!pim_ifp->ucast_bsm_accept) {
                dst_addr = qpim_all_pim_routers_addr;
                if (PIM_DEBUG_BSM)
-                       zlog_debug("%s: Sending BSM mcast to %s", __func__,
-                                  neigh_src_str);
+                       zlog_debug("%s: Sending BSM mcast to %pPA", __func__,
+                                  &neigh->source_addr);
        } else {
                dst_addr = neigh->source_addr;
                if (PIM_DEBUG_BSM)
-                       zlog_debug("%s: Sending BSM ucast to %s", __func__,
-                                  neigh_src_str);
+                       zlog_debug("%s: Sending BSM ucast to %pPA", __func__,
+                                  &neigh->source_addr);
        }
        pim_mtu = ifp->mtu - MAX_IP_HDR_LEN;
        pim_hello_require(ifp);