From 4972590ea5cc9fb5ff20b28227badd6338830649 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 12 Oct 2023 09:29:09 +0200 Subject: [PATCH] BGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions) --- proto/bgp/attrs.c | 8 -------- proto/bgp/bgp.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index adc201a7..457a8b15 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1151,14 +1151,6 @@ bgp_attr_known(uint code) return (code < ARRAY_SIZE(bgp_attr_table)) && bgp_attr_table[code].name; } -void bgp_fix_attr_flags(ea_list *attrs) -{ - for (u8 i = 0; i < attrs->count; i++) - { - attrs->attrs[i].flags = bgp_attr_table[EA_ID(attrs->attrs[i].id)].flags; - } -} - /* * Attribute export */ diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index 73686545..ceba958c 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -556,8 +556,6 @@ void bgp_store_error(struct bgp_proto *p, struct bgp_conn *c, u8 class, u32 code void bgp_stop(struct bgp_proto *p, int subcode, byte *data, uint len); const char *bgp_format_role_name(u8 role); -void bgp_fix_attr_flags(ea_list *attrs); - static inline int rte_resolvable(rte *rt) {