summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-25 19:42:39 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-06-25 19:42:39 +0000
commita13d35b02784ccf014ed0bffbdafa8923c5f93c6 (patch)
tree49da6ccf4a20676429e737aa332aeb1a2abcef59 /sbin/isakmpd/udp.c
parent8fcce6450e9a864014f4e8c0f0c17baecb3820f9 (diff)
Remove HAVE_GETNAMEINFO alternate code. Compiled binary is unchanged.
ok msf@ hshoexer@ itojun@ ho@
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r--sbin/isakmpd/udp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index 2f3c53fa20f..20c2ce42a88 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.76 2004/06/21 13:09:01 ho Exp $ */
+/* $OpenBSD: udp.c,v 1.77 2004/06/25 19:42:38 mcbride Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -530,7 +530,6 @@ udp_decode_ids(struct transport *t)
t->vtbl->get_src(t, &src);
t->vtbl->get_dst(t, &dst);
-#ifdef HAVE_GETNAMEINFO
if (getnameinfo(src, sysdep_sa_len(src), idsrc, sizeof idsrc, NULL, 0,
NI_NUMERICHOST) != 0) {
log_print("udp_decode_ids: getnameinfo () failed for 'src'");
@@ -541,10 +540,6 @@ udp_decode_ids(struct transport *t)
log_print("udp_decode_ids: getnameinfo () failed for 'dst'");
strlcpy(iddst, "<error>", 256);
}
-#else
- strlcpy(idsrc, inet_ntoa(src->sin_addr), 256);
- strlcpy(iddst, inet_ntoa(dst->sin_addr), 256);
-#endif /* HAVE_GETNAMEINFO */
snprintf(result, sizeof result, "src: %s dst: %s", idsrc, iddst);
return result;