summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-11-26 04:17:33 +0100
committerGitHub <noreply@github.com>2018-11-26 04:17:33 +0100
commit19e5a4659113dc7006373ba6db6cd2d2c04c699a (patch)
tree5c15052ff88dcf5327b0ac191b4b32c5dbc958cd /bgpd/bgpd.c
parentMerge pull request #3367 from karamalla0406/frr3333 (diff)
parentzebra: dup addr detect mac consolidation (diff)
downloadfrr-19e5a4659113dc7006373ba6db6cd2d2c04c699a.tar.xz
frr-19e5a4659113dc7006373ba6db6cd2d2c04c699a.zip
Merge pull request #3176 from chiragshah6/evpn_dev
zebra: duplicate address detection and dampening
Diffstat (limited to 'bgpd/bgpd.c')
-rw-r--r--bgpd/bgpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 48a3b1bb0..94cb285a0 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -86,8 +86,10 @@
#include "bgpd/bgp_labelpool.h"
#include "bgpd/bgp_pbr.h"
#include "bgpd/bgp_addpath.h"
+#include "bgpd/bgp_evpn_private.h"
DEFINE_MTYPE_STATIC(BGPD, PEER_TX_SHUTDOWN_MSG, "Peer shutdown message (TX)");
+DEFINE_MTYPE_STATIC(BGPD, BGP_EVPN_INFO, "BGP EVPN instance information");
DEFINE_QOBJ_TYPE(bgp_master)
DEFINE_QOBJ_TYPE(bgp)
DEFINE_QOBJ_TYPE(peer)
@@ -2982,6 +2984,9 @@ static struct bgp *bgp_create(as_t *as, const char *name,
/* assign a unique rd id for auto derivation of vrf's RD */
bf_assign_index(bm->rd_idspace, bgp->vrf_rd_id);
+ bgp->evpn_info = XCALLOC(MTYPE_BGP_EVPN_INFO,
+ sizeof(struct bgp_evpn_info));
+
bgp_evpn_init(bgp);
bgp_pbr_init(bgp);
return bgp;
@@ -3373,6 +3378,7 @@ void bgp_free(struct bgp *bgp)
bgp_evpn_cleanup(bgp);
bgp_pbr_cleanup(bgp);
+ XFREE(MTYPE_BGP_EVPN_INFO, bgp->evpn_info);
for (afi = AFI_IP; afi < AFI_MAX; afi++) {
vpn_policy_direction_t dir;