summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-06-18 13:54:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-06-18 13:54:02 +0000
commit8ee20e62f7f43749a4933e52a5220eb7d4a7aef8 (patch)
tree3835484851851cf05eee4145a9ba313481348083
parentf333b9e44ae6bb6637dd8a02697fc54d23492b2e (diff)
make cloned sessions appear with RECONF_REINIT so they are treated like
peers added at runtime
-rw-r--r--usr.sbin/bgpd/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index f1e1c321e12..535ec53a51e 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.252 2006/06/17 14:06:09 henning Exp $ */
+/* $OpenBSD: session.c,v 1.253 2006/06/18 13:54:01 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -2616,6 +2616,7 @@ getpeerbyip(struct sockaddr *ip)
newpeer->conf.template = 0;
newpeer->conf.cloned = 1;
newpeer->state = newpeer->prev_state = STATE_NONE;
+ newpeer->conf.reconf_action = RECONF_REINIT;
newpeer->rbuf = NULL;
init_peer(newpeer);
bgp_fsm(newpeer, EVNT_START);