From 165a62272720071ca5e9ed1badfddc78b7a7af10 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 24 Dec 2008 17:24:41 +0100 Subject: 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. --- proto/bgp/bgp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'proto/bgp/bgp.h') diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 5c180cc..b706caf 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 */ }; -- cgit v1.2.3