summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/database.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2009-01-08 19:18:17 +0000
committerclaudio <claudio@openbsd.org>2009-01-08 19:18:17 +0000
commit6742988b8ea12db3b7c0ec9787bed63114e31f32 (patch)
tree4e1f1044991839926a66676f34da1cc9302d8770 /usr.sbin/ospfd/database.c
parentensure getpwnam is always followed by endpwent; ok gilles@ henning@ (diff)
downloadwireguard-openbsd-6742988b8ea12db3b7c0ec9787bed63114e31f32.tar.xz
wireguard-openbsd-6742988b8ea12db3b7c0ec9787bed63114e31f32.zip
Include the neighbor ID in a debug output so that it is clear which router
is sendingf the duplicate entries. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/database.c')
-rw-r--r--usr.sbin/ospfd/database.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/database.c b/usr.sbin/ospfd/database.c
index 9f6b58befac..3281d7e7cca 100644
--- a/usr.sbin/ospfd/database.c
+++ b/usr.sbin/ospfd/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.23 2008/11/24 18:28:02 claudio Exp $ */
+/* $OpenBSD: database.c,v 1.24 2009/01/08 19:18:17 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -187,7 +187,8 @@ recv_db_description(struct nbr *nbr, char *buf, u_int16_t len)
nbr->last_rx_bits == dd_hdr.bits &&
ntohl(dd_hdr.dd_seq_num) == nbr->dd_seq_num - nbr->dd_master ?
1 : 0) {
- log_debug("recv_db_description: dupe");
+ log_debug("recv_db_description: dupe from ID %s",
+ inet_ntoa(nbr->id));
dupe = 1;
}