summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorsarita patra <saritap@vmware.com>2022-04-27 12:27:24 +0200
committerSarita Patra <saritap@vmware.com>2022-07-07 19:56:45 +0200
commitcefd2343d6d7f6f8e1e48df36b8ae39c29d13136 (patch)
tree5d52a632761d57f31bb53a7c9dc470f232ad6b8c /pimd
parentpim6d: running pim_bsm.c for pimv6 (diff)
downloadfrr-cefd2343d6d7f6f8e1e48df36b8ae39c29d13136.tar.xz
frr-cefd2343d6d7f6f8e1e48df36b8ae39c29d13136.zip
pim6d: remove unused variable neigh_src_str
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim_bsm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c
index b6fdf92f8..6ea67fbef 100644
--- a/pimd/pim_bsm.c
+++ b/pimd/pim_bsm.c
@@ -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);