From: Donald Sharp Date: Thu, 29 Oct 2020 12:53:43 +0000 (-0400) Subject: ospf6d: Give a bit more data when sendmsg fails X-Git-Tag: base_7.6~334^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=130830323d4aeed973a56f6982ef7a112bc01d80;p=matthieu%2Ffrr.git ospf6d: Give a bit more data when sendmsg fails When sendmsg fails add a bit more data in hopes we can figure out what is going wrong. Signed-off-by: Donald Sharp --- diff --git a/ospf6d/ospf6_network.c b/ospf6d/ospf6_network.c index 43b6d08b54..94e80b0f28 100644 --- a/ospf6d/ospf6_network.c +++ b/ospf6d/ospf6_network.c @@ -222,7 +222,8 @@ int ospf6_sendmsg(struct in6_addr *src, struct in6_addr *dst, retval = sendmsg(ospf6_sock, &smsghdr, 0); if (retval != iov_totallen(message)) - zlog_warn("sendmsg failed: ifindex: %d: %s (%d)", ifindex, + zlog_warn("sendmsg failed: source: %pI6 Dest: %pI6 ifindex: %d: %s (%d)", + src, dst, ifindex, safe_strerror(errno), errno); return retval;