mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
BMP protocol support
Initial implementation of a basic subset of the BMP (BGP Monitoring Protocol, RFC 7854) from Akamai team. Submitted for further review and improvement.
This commit is contained in:
committed by
Ondrej Zajicek
parent
9e44ace392
commit
a848dad40a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user