summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index a6d3b61e5..2aa90e487 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -351,6 +351,11 @@ struct bgp
u_int32_t addpath_tx_id;
int addpath_tx_used[AFI_MAX][SAFI_MAX];
+
+#if ENABLE_BGP_VNC
+ struct rfapi_cfg *rfapi_cfg;
+ struct rfapi *rfapi;
+#endif
};
#define BGP_ROUTE_ADV_HOLD(bgp) (bgp->main_peers_update_hold)
@@ -417,6 +422,8 @@ struct bgp_rd
#define RMAP_OUT 1
#define RMAP_MAX 2
+#include "filter.h"
+
/* BGP filter structure. */
struct bgp_filter
{
@@ -657,6 +664,9 @@ struct peer
#define PEER_FLAG_DYNAMIC_NEIGHBOR (1 << 12) /* dynamic neighbor */
#define PEER_FLAG_CAPABILITY_ENHE (1 << 13) /* Extended next-hop (rfc 5549)*/
#define PEER_FLAG_IFPEER_V6ONLY (1 << 14) /* if-based peer is v6 only */
+#if ENABLE_BGP_VNC
+#define PEER_FLAG_IS_RFAPI_HD (1 << 15) /* attached to rfapi HD */
+#endif
/* NSF mode (graceful restart) */
u_char nsf[AFI_MAX][SAFI_MAX];
@@ -940,6 +950,9 @@ struct bgp_nlri
#define BGP_ATTR_AS4_AGGREGATOR 18
#define BGP_ATTR_AS_PATHLIMIT 21
#define BGP_ATTR_ENCAP 23
+#if ENABLE_BGP_VNC
+#define BGP_ATTR_VNC 255
+#endif
/* BGP update origin. */
#define BGP_ORIGIN_IGP 0
@@ -1054,6 +1067,7 @@ struct bgp_nlri
/* RFC4364 */
#define SAFI_MPLS_LABELED_VPN 128
+#define BGP_SAFI_VPN 128
/* BGP uptime string length. */
#define BGP_UPTIME_LEN 25
@@ -1506,4 +1520,8 @@ bgp_vrf_unlink (struct bgp *bgp, struct vrf *vrf)
}
extern void bgp_update_redist_vrf_bitmaps (struct bgp*, vrf_id_t);
+
+/* For benefit of rfapi */
+extern struct peer * peer_new (struct bgp *bgp);
+
#endif /* _QUAGGA_BGPD_H */