summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2011-03-12 01:52:04 +0000
committerclaudio <claudio@openbsd.org>2011-03-12 01:52:04 +0000
commit2ea57fa6afb2518ba59f9c98341d62c56d08c33d (patch)
treeba858d6cd4fd34ccf5b1aa6007a1d260726ae34e
parentadd -z to the extensions list in STANDARDS; (diff)
downloadwireguard-openbsd-2ea57fa6afb2518ba59f9c98341d62c56d08c33d.tar.xz
wireguard-openbsd-2ea57fa6afb2518ba59f9c98341d62c56d08c33d.zip
Log the fact that a session was not accepted because of missing HELLOs.
-rw-r--r--usr.sbin/ldpd/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index 80c42a09637..b23739c6d90 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.14 2011/01/10 12:28:25 claudio Exp $ */
+/* $OpenBSD: packet.c,v 1.15 2011/03/12 01:52:04 claudio Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -274,6 +274,8 @@ session_accept(int fd, short event, void *bula)
struct ibuf *buf;
/* If there is no neighbor matching there is no
Hello adjacency: try to send notification */
+ log_warnx("Connection attempt from unknown neighbor %s: %s",
+ inet_ntoa(src.sin_addr), "NO HELLO");
buf = send_notification(S_NO_HELLO, NULL, 0, 0);
write(newfd, buf->buf, buf->wpos);
ibuf_free(buf);