From: Maria Matejka Date: Thu, 12 Oct 2023 07:29:09 +0000 (+0200) Subject: BGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions) X-Git-Tag: v3.0.0~397^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4972590e;p=thirdparty%2Fbird.git BGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions) --- diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index adc201a7b..457a8b152 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 736865457..ceba958c1 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) {