mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-17 20:09:38 +00:00
ospf6d: remove inet_ntop calls in ospf6_write
substitute pI6 formatter. Signed-off-by: Pat Ruddy <pat@voltanet.io>
This commit is contained in:
parent
a91f9d699c
commit
779d972213
@ -1890,7 +1890,6 @@ static int ospf6_write(struct thread *thread)
|
|||||||
struct ospf6_header *oh;
|
struct ospf6_header *oh;
|
||||||
struct ospf6_packet *op;
|
struct ospf6_packet *op;
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
char srcname[64], dstname[64];
|
|
||||||
struct iovec iovector[2];
|
struct iovec iovector[2];
|
||||||
int pkt_count = 0;
|
int pkt_count = 0;
|
||||||
int len;
|
int len;
|
||||||
@ -1928,15 +1927,12 @@ static int ospf6_write(struct thread *thread)
|
|||||||
"Could not send entire message");
|
"Could not send entire message");
|
||||||
|
|
||||||
if (IS_OSPF6_DEBUG_MESSAGE(oh->type, SEND_HDR)) {
|
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",
|
zlog_debug("%s send on %s",
|
||||||
lookup_msg(ospf6_message_type_str, oh->type,
|
lookup_msg(ospf6_message_type_str, oh->type,
|
||||||
NULL),
|
NULL),
|
||||||
oi->interface->name);
|
oi->interface->name);
|
||||||
zlog_debug(" src: %s", srcname);
|
zlog_debug(" src: %pI6", oi->linklocal_addr);
|
||||||
zlog_debug(" dst: %s", dstname);
|
zlog_debug(" dst: %pI6", &op->dst);
|
||||||
switch (oh->type) {
|
switch (oh->type) {
|
||||||
case OSPF6_MESSAGE_TYPE_HELLO:
|
case OSPF6_MESSAGE_TYPE_HELLO:
|
||||||
ospf6_hello_print(oh, OSPF6_ACTION_SEND);
|
ospf6_hello_print(oh, OSPF6_ACTION_SEND);
|
||||||
|
Loading…
Reference in New Issue
Block a user