summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-10-18 15:39:06 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-10-18 15:39:06 +0000
commitfaa3e8c51b7ca3e9b7766d00a66eb969c33a9fd2 (patch)
tree11bb57fd49ccae6725aa6e4d59fa2e00bb2e1fde /usr.sbin
parent79d8403ca038999cfa488506e53521f6548f0fe5 (diff)
Better warning for non equal MTU in the database phase. Instead of just
whining that the MTU differs tell actually what is expected and what was sent. OK norby@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospfd/database.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/database.c b/usr.sbin/ospfd/database.c
index 7f3be686aa8..1ebc12cab46 100644
--- a/usr.sbin/ospfd/database.c
+++ b/usr.sbin/ospfd/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.13 2005/09/17 20:03:35 msf Exp $ */
+/* $OpenBSD: database.c,v 1.14 2005/10/18 15:39:05 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -177,8 +177,9 @@ recv_db_description(struct nbr *nbr, char *buf, u_int16_t len)
/* db description packet sanity checks */
if (ntohs(dd_hdr.iface_mtu) > nbr->iface->mtu) {
- log_warnx("recv_dd_description: invalid MTU, neighbor ID %s",
- inet_ntoa(nbr->id));
+ log_warnx("recv_dd_description: invalid MTU %d sent by "
+ "neighbor ID %s, expected %d", ntohs(dd_hdr.iface_mtu),
+ inet_ntoa(nbr->id), nbr->iface->mtu);
return;
}