summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_message.c
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2021-06-25 10:16:01 +0100
committerPat Ruddy <pat@voltanet.io>2021-06-26 11:16:19 +0100
commit779d972213803647ebed8f71b32ed7a12a2477aa (patch)
tree2e236de337337fd150d951070606eb07e4f9cc7c /ospf6d/ospf6_message.c
parenta91f9d699cd469aafb3a89d7156f84daaf3a76e5 (diff)
ospf6d: remove inet_ntop calls in ospf6_write
substitute pI6 formatter. Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'ospf6d/ospf6_message.c')
-rw-r--r--ospf6d/ospf6_message.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c
index 7faec0d490..3ebefb5bc5 100644
--- a/ospf6d/ospf6_message.c
+++ b/ospf6d/ospf6_message.c
@@ -1890,7 +1890,6 @@ static int ospf6_write(struct thread *thread)
struct ospf6_header *oh;
struct ospf6_packet *op;
struct listnode *node;
- char srcname[64], dstname[64];
struct iovec iovector[2];
int pkt_count = 0;
int len;
@@ -1928,15 +1927,12 @@ static int ospf6_write(struct thread *thread)
"Could not send entire message");
if (IS_OSPF6_DEBUG_MESSAGE(oh->type, SEND_HDR)) {
- inet_ntop(AF_INET6, &op->dst, dstname, sizeof(dstname));
- inet_ntop(AF_INET6, oi->linklocal_addr, srcname,
- sizeof(srcname));
zlog_debug("%s send on %s",
lookup_msg(ospf6_message_type_str, oh->type,
NULL),
oi->interface->name);
- zlog_debug(" src: %s", srcname);
- zlog_debug(" dst: %s", dstname);
+ zlog_debug(" src: %pI6", oi->linklocal_addr);
+ zlog_debug(" dst: %pI6", &op->dst);
switch (oh->type) {
case OSPF6_MESSAGE_TYPE_HELLO:
ospf6_hello_print(oh, OSPF6_ACTION_SEND);