summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-08-05 04:06:49 +0200
committerGitHub <noreply@github.com>2022-08-05 04:06:49 +0200
commitf07b1a9fb43096539a91af67235dcf3122ef4586 (patch)
treeeda2408959835e4cfbc6c271aa19f7aae440a7e4 /lib
parentMerge pull request #11705 from Jafaral/pim-static (diff)
parentlib: Add errno details to the sockopt_reuseaddr api (diff)
downloadfrr-f07b1a9fb43096539a91af67235dcf3122ef4586.tar.xz
frr-f07b1a9fb43096539a91af67235dcf3122ef4586.zip
Merge pull request #11716 from mobash-rasool/fixes2
pimd, pim6d: Send register msg via reg socket, solve FHR/RP same node issue
Diffstat (limited to 'lib')
-rw-r--r--lib/sockunion.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c
index eff38798c..36ae21fdd 100644
--- a/lib/sockunion.c
+++ b/lib/sockunion.c
@@ -290,8 +290,10 @@ int sockopt_reuseaddr(int sock)
ret = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void *)&on,
sizeof(on));
if (ret < 0) {
- flog_err(EC_LIB_SOCKET,
- "can't set sockopt SO_REUSEADDR to socket %d", sock);
+ flog_err(
+ EC_LIB_SOCKET,
+ "can't set sockopt SO_REUSEADDR to socket %d errno=%d: %s",
+ sock, errno, safe_strerror(errno));
return -1;
}
return 0;