summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-10-19 12:02:51 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-10-19 12:02:51 +0000
commitdad2ed0ea2d46300983f4e9cde6008dba2926d1e (patch)
tree1d33e1002e97ab67386bd63daa50de6a21566c2d /usr.sbin/bgpd/session.h
parent7624dce6c878f38e238494751c696fb265e11e2b (diff)
allow neighbor definitions to depend on interface state.
with this, if a neighbor is configured as dependent on carp0 for example, the neighbor will remain in state IDLE as long as carp0 is not master. once carp0 becomes master the session(s) depending on it immediately go to CONNECT (or ACTIVE, if they're configured passive), reducing failover time. claudio ok, with some input from ryan as well
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r--usr.sbin/bgpd/session.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h
index fbfcdd2af60..f12507644b3 100644
--- a/usr.sbin/bgpd/session.h
+++ b/usr.sbin/bgpd/session.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.h,v 1.63 2004/09/22 08:46:28 henning Exp $ */
+/* $OpenBSD: session.h,v 1.64 2004/10/19 12:02:50 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -180,6 +180,7 @@ struct peer {
struct msgbuf wbuf;
struct buf_read *rbuf;
u_int8_t auth_established;
+ u_int8_t depend_ok;
struct peer *next;
};