summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-10 13:46:49 +0100
committerGitHub <noreply@github.com>2022-02-10 13:46:49 +0100
commitcd03cf164450ea406f3dfdeac12cad4ba551c3df (patch)
treeb136e7d0445d1a7cba7b38604c55e1f26ec88be2 /bgpd/bgp_attr.c
parentMerge pull request #10545 from ton31337/feature/get_set_for_lcommunity (diff)
parentRevert "bgpd: Move out ipv6_ecommunity struct from attr to attr_extra" (diff)
downloadfrr-cd03cf164450ea406f3dfdeac12cad4ba551c3df.tar.xz
frr-cd03cf164450ea406f3dfdeac12cad4ba551c3df.zip
Merge pull request #10540 from idryzhov/attr-extra-revert
revert recent bgp attr->extra changes
Diffstat (limited to 'bgpd/bgp_attr.c')
-rw-r--r--bgpd/bgp_attr.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index 008998c8b..4f25f2284 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -95,16 +95,6 @@ static const struct message attr_flag_str[] = {
static struct hash *cluster_hash;
-struct attr_extra *bgp_attr_extra_alloc(void)
-{
- return XCALLOC(MTYPE_ATTR_EXTRA, sizeof(struct attr_extra));
-}
-
-void bgp_attr_extra_free(struct attr *attr)
-{
- XFREE(MTYPE_ATTR_EXTRA, attr->extra);
-}
-
static void *cluster_hash_alloc(void *p)
{
const struct cluster_list *val = (const struct cluster_list *)p;
@@ -789,7 +779,6 @@ static void attrhash_init(void)
*/
static void attr_vfree(void *attr)
{
- bgp_attr_extra_free(attr);
XFREE(MTYPE_ATTR, attr);
}
@@ -1236,7 +1225,6 @@ void bgp_attr_flush(struct attr *attr)
bgp_attr_set_vnc_subtlvs(attr, NULL);
}
#endif
- bgp_attr_extra_free(attr);
}
/* Implement draft-scudder-idr-optional-transitive behaviour and