diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-04-21 04:47:55 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-04-21 04:47:55 +0200 |
commit | 52450bc96dcedbc30cbb2e282c6706ad9e5e5774 (patch) | |
tree | e12244a788d6a26c52b3e5785c677b8d82b6a1c9 /proto/bgp/attrs.c | |
parent | d61505b039bf0aa6697e28b2a4e07907c89ba1fb (diff) | |
parent | f3b599afe5bde0c7f232421743041b305bb8afa7 (diff) |
Merge branch 'bmp'
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 204151c3..de45cae0 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1151,6 +1151,13 @@ 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 |