summaryrefslogtreecommitdiff
path: root/usr.sbin/eigrpd/neighbor.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/eigrpd/neighbor.c')
-rw-r--r--usr.sbin/eigrpd/neighbor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/eigrpd/neighbor.c b/usr.sbin/eigrpd/neighbor.c
index c6a2388c832..d8b5a2375db 100644
--- a/usr.sbin/eigrpd/neighbor.c
+++ b/usr.sbin/eigrpd/neighbor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: neighbor.c,v 1.8 2016/09/02 16:29:55 renato Exp $ */
+/* $OpenBSD: neighbor.c,v 1.9 2016/09/02 16:39:44 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -53,8 +53,6 @@ nbr_pid_compare(struct nbr *a, struct nbr *b)
struct nbr_pid_head nbrs_by_pid = RB_INITIALIZER(&nbrs_by_pid);
-uint32_t peercnt = NBR_CNTSTART;
-
extern struct eigrpd_conf *econf;
struct nbr *
@@ -150,6 +148,8 @@ nbr_del(struct nbr *nbr)
void
nbr_update_peerid(struct nbr *nbr)
{
+ static uint32_t peercnt = NBR_CNTSTART;
+
if (nbr->peerid)
RB_REMOVE(nbr_pid_head, &nbrs_by_pid, nbr);