diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-03-12 01:52:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2011-03-12 01:52:05 +0000 |
commit | 052a85efe8d2f0b86634f2783879f2d87b5054c3 (patch) | |
tree | 72a1738ff307610963a4b1f3718c895d305a1426 /usr.sbin | |
parent | 51c4db5f4f088c175b4c9f2148ff350e72d21076 (diff) |
Log the fact that a session was not accepted because of missing HELLOs.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldpd/packet.c | 4 |
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); |