summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/message.c
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2006-10-31 23:43:12 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2006-10-31 23:43:12 +0000
commit4408b82564117ed0494a4eeabda5de5816253ac9 (patch)
tree83c457f59b1dc1e1fd8dcae02cc425e02b0f9d6f /usr.sbin/ripd/message.c
parent01d8e5adac204b0f22bfcf990eff272b66f45444 (diff)
create a temporary neighbor instead of a permanent one when a request is received
Diffstat (limited to 'usr.sbin/ripd/message.c')
-rw-r--r--usr.sbin/ripd/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripd/message.c b/usr.sbin/ripd/message.c
index e55bf08bb8f..7d86d174de8 100644
--- a/usr.sbin/ripd/message.c
+++ b/usr.sbin/ripd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.2 2006/10/24 16:37:48 david Exp $ */
+/* $OpenBSD: message.c,v 1.3 2006/10/31 23:43:11 michele Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -172,7 +172,7 @@ send_request(struct packet_head *r_list, struct iface *i, struct nbr *nbr)
if (TAILQ_FIRST(r_list) == TAILQ_LAST(r_list, packet_head))
single_entry = 1;
while (((entry = TAILQ_FIRST(r_list)) != NULL) &&
- nentries < 25) {
+ nentries < MAX_RIP_ENTRIES) {
afi = htons(AF_INET);
address = entry->rr->address.s_addr;