diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 02:40:39 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 02:40:39 +0200 |
commit | d6661008e2ded929a77e729ebbf20aa177d59f67 (patch) | |
tree | dce5a13b57f7581a76b17750b0d5a645481abee3 /bgpd/bgpd.h | |
parent | BGP doesn't count a route with an unreachable nexthop in PfxRcd (diff) | |
download | frr-d6661008e2ded929a77e729ebbf20aa177d59f67.tar.xz frr-d6661008e2ded929a77e729ebbf20aa177d59f67.zip |
Save the last message from a peer that caused us to send a NOTIFICATION
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgpd.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index ef22c45f1..40e3d2abe 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -299,6 +299,11 @@ typedef enum BGP_PEER_CONFED, } bgp_peer_sort_t; +/* BGP message header and packet size. */ +#define BGP_MARKER_SIZE 16 +#define BGP_HEADER_SIZE 19 +#define BGP_MAX_PACKET_SIZE 4096 + /* BGP neighbor structure. */ struct peer { @@ -598,6 +603,8 @@ struct peer #define PEER_DOWN_PASSIVE_CHANGE 20 /* neighbor passive command */ #define PEER_DOWN_MULTIHOP_CHANGE 21 /* neighbor multihop command */ #define PEER_DOWN_NSF_CLOSE_SESSION 22 /* NSF tcp session close */ +unsigned long last_reset_cause_size; +u_char last_reset_cause[BGP_MAX_PACKET_SIZE]; /* The kind of route-map Flags.*/ u_char rmap_type; @@ -637,11 +644,6 @@ struct bgp_nlri /* Default BGP port number. */ #define BGP_PORT_DEFAULT 179 -/* BGP message header and packet size. */ -#define BGP_MARKER_SIZE 16 -#define BGP_HEADER_SIZE 19 -#define BGP_MAX_PACKET_SIZE 4096 - /* BGP minimum message size. */ #define BGP_MSG_OPEN_MIN_SIZE (BGP_HEADER_SIZE + 10) #define BGP_MSG_UPDATE_MIN_SIZE (BGP_HEADER_SIZE + 4) |