diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 11:38:34 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-10 11:38:34 +0000 |
commit | abad3baed4b13617494132f3b7093177b1632689 (patch) | |
tree | d962ec01cd551fcb8b25c02377ca79126b03b13e /usr.sbin/bgpd/session.h | |
parent | fd7b9fc3b134fe231ec808a21c97c2a2d0824660 (diff) |
implement framework to announce capabilities in the open messages we send.
this includes handling "unsupported optional parameter" notifications from the
peer and retrying without capability announcement. claudio ok
Diffstat (limited to 'usr.sbin/bgpd/session.h')
-rw-r--r-- | usr.sbin/bgpd/session.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/session.h b/usr.sbin/bgpd/session.h index 0f36cda28d6..d40cfdec62b 100644 --- a/usr.sbin/bgpd/session.h +++ b/usr.sbin/bgpd/session.h @@ -1,4 +1,4 @@ -/* $OpenBSD: session.h,v 1.34 2004/03/05 21:44:26 henning Exp $ */ +/* $OpenBSD: session.h,v 1.35 2004/03/10 11:38:33 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -94,6 +94,12 @@ enum opt_params { OPT_PARAM_CAPABILITIES }; +enum capa_codes { + CAPA_NONE, + CAPA_MP, + CAPA_REFRESH +}; + struct msg_header { u_char marker[16]; u_int16_t len; @@ -134,10 +140,15 @@ struct peer_auth { u_int32_t spi_out; }; +struct peer_capa { + u_int8_t announce; +}; + struct peer { struct peer_config conf; struct peer_stats stats; struct peer_auth auth; + struct peer_capa capa; u_int32_t remote_bgpid; u_int16_t holdtime; enum session_state state; |