summaryrefslogtreecommitdiff
path: root/ldpd/address.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-10-22 10:46:14 -0400
committerMark Stapp <mjs@voltanet.io>2020-10-22 15:49:56 -0400
commit903a72269a8d5bd2fe60f29787b0e857db35b0d5 (patch)
treefa9bec62b837c422cf06e55d90bfe9361d8eeed3 /ldpd/address.c
parent84de5a245a3eb17619588a535b9f408ce802a8c9 (diff)
ldpd: replace inet_ntoa
Replace all use of inet_ntoa; use pI4 or inet_ntop instead. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'ldpd/address.c')
-rw-r--r--ldpd/address.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldpd/address.c b/ldpd/address.c
index 74a3f5a309..c3e27357b5 100644
--- a/ldpd/address.c
+++ b/ldpd/address.c
@@ -410,8 +410,8 @@ static void
log_msg_address(int out, uint16_t msg_type, struct nbr *nbr, int af,
union ldpd_addr *addr)
{
- debug_msg(out, "%s: lsr-id %s, address %s", msg_name(msg_type),
- inet_ntoa(nbr->id), log_addr(af, addr));
+ debug_msg(out, "%s: lsr-id %pI4, address %s", msg_name(msg_type),
+ &nbr->id, log_addr(af, addr));
}
static void
@@ -419,7 +419,7 @@ log_msg_mac_withdrawal(int out, struct nbr *nbr, uint8_t *mac)
{
char buf[ETHER_ADDR_STRLEN];
- debug_msg(out, "mac withdrawal: lsr-id %s, mac %s", inet_ntoa(nbr->id),
+ debug_msg(out, "mac withdrawal: lsr-id %pI4, mac %s", &nbr->id,
(mac) ? prefix_mac2str((struct ethaddr *)mac, buf, sizeof(buf)) :
"wildcard");
}