summaryrefslogtreecommitdiffstats
path: root/pimd/pim_register.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-10-22 16:01:20 +0200
committerMark Stapp <mjs@voltanet.io>2020-10-22 16:13:56 +0200
commitee2bbf7ce20616e09f45b8b2f13e6fcba921c57d (patch)
tree7895f00a1be28c63c30377264abde11f7a8f8c4d /pimd/pim_register.c
parentMerge pull request #7343 from ton31337/fix/prefix2str_to_pFX (diff)
downloadfrr-ee2bbf7ce20616e09f45b8b2f13e6fcba921c57d.tar.xz
frr-ee2bbf7ce20616e09f45b8b2f13e6fcba921c57d.zip
pimd: replace inet_ntoa
Replace all use of inet_ntoa, using %pI4 or inet_ntoa instead Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'pimd/pim_register.c')
-rw-r--r--pimd/pim_register.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/pimd/pim_register.c b/pimd/pim_register.c
index 19e15f3ed..90b69a54f 100644
--- a/pimd/pim_register.c
+++ b/pimd/pim_register.c
@@ -75,8 +75,8 @@ void pim_register_stop_send(struct interface *ifp, struct prefix_sg *sg,
struct prefix p;
if (PIM_DEBUG_PIM_REG) {
- zlog_debug("Sending Register stop for %s to %s on %s",
- pim_str_sg_dump(sg), inet_ntoa(originator),
+ zlog_debug("Sending Register stop for %s to %pI4 on %s",
+ pim_str_sg_dump(sg), &originator,
ifp->name);
}
@@ -170,9 +170,9 @@ void pim_register_send(const uint8_t *buf, int buf_size, struct in_addr src,
struct interface *ifp;
if (PIM_DEBUG_PIM_REG) {
- zlog_debug("Sending %s %sRegister Packet to %s", up->sg_str,
+ zlog_debug("Sending %s %sRegister Packet to %pI4", up->sg_str,
null_register ? "NULL " : "",
- inet_ntoa(rpg->rpf_addr.u.prefix4));
+ &rpg->rpf_addr.u.prefix4);
}
ifp = rpg->source_nexthop.interface;
@@ -192,12 +192,9 @@ void pim_register_send(const uint8_t *buf, int buf_size, struct in_addr src,
}
if (PIM_DEBUG_PIM_REG) {
- char rp_str[INET_ADDRSTRLEN];
- strlcpy(rp_str, inet_ntoa(rpg->rpf_addr.u.prefix4),
- sizeof(rp_str));
- zlog_debug("%s: Sending %s %sRegister Packet to %s on %s",
+ zlog_debug("%s: Sending %s %sRegister Packet to %pI4 on %s",
__func__, up->sg_str, null_register ? "NULL " : "",
- rp_str, ifp->name);
+ &rpg->rpf_addr.u.prefix4, ifp->name);
}
memset(buffer, 0, 10000);