]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: dropped bgp_fix_attr_flags() (useless remnant from previous versions)
authorMaria Matejka <mq@ucw.cz>
Thu, 12 Oct 2023 07:29:09 +0000 (09:29 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 12 Oct 2023 07:29:09 +0000 (09:29 +0200)
proto/bgp/attrs.c
proto/bgp/bgp.h

index adc201a7b05183aaa951a9e8c3a5f39373d8bd79..457a8b152a0df8c1d5270f1c174f9ec6f17723fc 100644 (file)
@@ -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
  */
index 7368654573ba2cc4b4c0cd8bc52f1a33c2eeee42..ceba958c159ce69b361daacb96e0525b3cb21c1f 100644 (file)
@@ -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)
 {