diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-10-19 10:42:07 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-10-19 10:42:07 +0000 |
commit | 7a0f69aae4c268d4ace9e43362a87d9de5cecf2a (patch) | |
tree | 9d680f8d1dbd369acc31852e026f4618f161053c /usr.sbin/bgpd/session.c | |
parent | 600c195b61888ec0dd2f50ed8231ac363e97e24c (diff) |
new keyword "down" in neighbor spec, when givenm, the session is not
started on bgpd startup but stays in IDLE. requested by claudio
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 6922ff3573f..5f1cc83d4a2 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.236 2005/10/19 09:36:51 henning Exp $ */ +/* $OpenBSD: session.c,v 1.237 2005/10/19 10:42:06 henning Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -541,7 +541,10 @@ init_peer(struct peer *p) peer_cnt++; change_state(p, STATE_IDLE, EVNT_NONE); - p->IdleHoldTimer = time(NULL); /* start ASAP */ + if (p->conf.down) + p->IdleHoldTimer = 0; /* no autostart */ + else + p->IdleHoldTimer = time(NULL); /* start ASAP */ } void |