summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-08-25 20:27:49 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-08-25 20:27:49 +0200
commit7f32323620077157dda1127c86ea792e4f5fcd89 (patch)
tree108e276beea142633182c52f7fbe301a3034afe9 /bgpd/bgpd.h
parentMerge pull request #939 from jbonor/optimization (diff)
downloadfrr-7f32323620077157dda1127c86ea792e4f5fcd89.tar.xz
frr-7f32323620077157dda1127c86ea792e4f5fcd89.zip
bgpd: implement draft-ietf-grow-bgp-gshut-10
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index f6e7b2277..da30ecd96 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -303,6 +303,7 @@ struct bgp {
#define BGP_FLAG_FORCE_STATIC_PROCESS (1 << 18)
#define BGP_FLAG_SHOW_HOSTNAME (1 << 19)
#define BGP_FLAG_GR_PRESERVE_FWD (1 << 20)
+#define BGP_FLAG_GRACEFUL_SHUTDOWN (1 << 21)
/* BGP Per AF flags */
u_int16_t af_flags[AFI_MAX][SAFI_MAX];
@@ -1091,6 +1092,10 @@ struct bgp_nlri {
/* BGP default local preference. */
#define BGP_DEFAULT_LOCAL_PREF 100
+/* BGP local-preference to send when 'bgp graceful-shutdown'
+ * is configured */
+#define BGP_GSHUT_LOCAL_PREF 0
+
/* BGP default subgroup packet queue max . */
#define BGP_DEFAULT_SUBGROUP_PKT_QUEUE_MAX 40