summaryrefslogtreecommitdiff
path: root/lib/sockunion.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-06-19 12:02:56 +0300
committerGitHub <noreply@github.com>2022-06-19 12:02:56 +0300
commitee91e848ff7020be6840d8bf82242f20217667af (patch)
treece8379e03eb2b69b745ad2863c610cd06529ad77 /lib/sockunion.c
parent38437392b9f66cdd02eca680c698c20ea759abce (diff)
parentc08f56304b12a9d765d8ec80b9f145c1274fecd7 (diff)
Merge pull request #11431 from donaldsharp/bgp_cleanups
Add some extra data for when things might be going wrong
Diffstat (limited to 'lib/sockunion.c')
-rw-r--r--lib/sockunion.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c
index 97b198c018..eff38798cc 100644
--- a/lib/sockunion.c
+++ b/lib/sockunion.c
@@ -525,6 +525,11 @@ union sockunion *sockunion_getsockname(int fd)
sockunion_normalise_mapped(su);
return su;
}
+
+ flog_err(
+ EC_LIB_SOCKET,
+ "Unexpected AFI received(%d) for sockunion_getsockname call for fd: %d",
+ name.sa.sa_family, fd);
return NULL;
}
@@ -561,6 +566,11 @@ union sockunion *sockunion_getpeername(int fd)
sockunion_normalise_mapped(su);
return su;
}
+
+ flog_err(
+ EC_LIB_SOCKET,
+ "Unexpected AFI received(%d) for sockunion_getpeername call for fd: %d",
+ name.sa.sa_family, fd);
return NULL;
}