summaryrefslogtreecommitdiffstats
path: root/pimd/pim_igmp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-05-14 15:44:12 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-05-19 20:48:11 +0200
commit262649bd05e0bbc36dce45cc2fd7e19d6955f3c9 (patch)
treea2aaac4933116f0ee5b7646532c3f3795775fba3 /pimd/pim_igmp.c
parentMerge pull request #8645 from idryzhov/ospf6-redistribute-fixes (diff)
downloadfrr-262649bd05e0bbc36dce45cc2fd7e19d6955f3c9.tar.xz
frr-262649bd05e0bbc36dce45cc2fd7e19d6955f3c9.zip
pimd: When bind fails give some extra data
When bind to a socket fails, let's give some color so we can understand and fix the issue. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r--pimd/pim_igmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index f2b909e26..73dcdbddb 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -1028,8 +1028,8 @@ struct igmp_sock *pim_igmp_sock_add(struct list *igmp_sock_list,
sin.sin_addr = ifaddr;
sin.sin_port = 0;
if (bind(fd, (struct sockaddr *) &sin, sizeof(sin)) != 0) {
- zlog_warn("Could not bind IGMP socket for %pI4 on %s",
- &ifaddr, ifp->name);
+ zlog_warn("Could not bind IGMP socket for %pI4 on %s: %s(%d)",
+ &ifaddr, ifp->name, strerror(errno), errno);
close(fd);
return NULL;