summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-12-24 17:24:41 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-12-24 17:24:41 +0100
commit165a62272720071ca5e9ed1badfddc78b7a7af10 (patch)
tree5d7a1b37cd38d25a2264527616ee58e8f1b6f97a /proto/bgp/bgp.h
parent591211557f4106ed9e877fa9b80eb56ffb99fef3 (diff)
Adds support for fallback to capabilityless BGP connect
When capability related error is received, next connect will be without capabilities. Also cease error subcodes descriptions (according to [RFC4486]) are added.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index 5c180cce..b706caf1 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -51,9 +51,10 @@ struct bgp_conn {
int packets_to_send; /* Bitmap of packet types to be sent */
int notify_code, notify_subcode, notify_size;
byte *notify_data;
- int error_flag; /* Error state, ignore all input */
u32 advertised_as; /* Temporary value for AS number received */
- int as4_support; /* Peer supports 4B AS numbers [RFC4893] */
+ int start_state; /* protocol start_state snapshot when connection established */
+ int want_as4_support; /* Connection tries to establish AS4 session */
+ int peer_as4_support; /* Peer supports 4B AS numbers [RFC4893] */
unsigned hold_time, keepalive_time; /* Times calculated from my and neighbor's requirements */
};