summaryrefslogtreecommitdiff
path: root/lib/ntop.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-06-06 19:35:03 +0200
committerDavid Lamparter <equinox@diac24.net>2019-06-06 20:59:54 +0200
commit874035be4e65a889525b0380ce686b64e7ff5bb0 (patch)
treec296aa18b6dd4f1d195d08f74a149a09456c51e6 /lib/ntop.c
parente128c002261a8f602b8bcb786c990e47c52d8cf8 (diff)
tests: exercise frr_inet_ntop()
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/ntop.c')
-rw-r--r--lib/ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ntop.c b/lib/ntop.c
index 5500f988e0..d47a0b697a 100644
--- a/lib/ntop.c
+++ b/lib/ntop.c
@@ -165,8 +165,10 @@ inet4:
return dst;
}
+#ifndef INET_NTOP_NO_OVERRIDE
/* we want to override libc inet_ntop, but make sure it shows up in backtraces
* as frr_inet_ntop (to avoid confusion while debugging)
*/
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size)
__attribute__((alias ("frr_inet_ntop"))) DSO_SELF;
+#endif