summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ripd/message.c
diff options
context:
space:
mode:
authormichele <michele@openbsd.org>2006-10-31 23:43:11 +0000
committermichele <michele@openbsd.org>2006-10-31 23:43:11 +0000
commite3be6b293441ddfeebf98da8f1bfcf5f9023c73c (patch)
tree76c75dfc73210d5c923706f6e0a115c37b84760c /usr.sbin/ripd/message.c
parentDo not map obio mappings twice. (diff)
downloadwireguard-openbsd-e3be6b293441ddfeebf98da8f1bfcf5f9023c73c.tar.xz
wireguard-openbsd-e3be6b293441ddfeebf98da8f1bfcf5f9023c73c.zip
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;