commit | 395ec7f5ab794eb5205a7386b890ccb9b1313580 | [log] [tgz] |
---|---|---|
author | Denis Ovsienko <infrastation@yandex.ru> | Tue Sep 27 15:47:25 2011 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Mon Oct 17 18:27:55 2011 +0400 |
tree | 300b6a9a988317a3f3853717d940915693931ee0 | |
parent | e531d4a662749fdd2a2f83f16e0b1cd252b23ea1 [diff] |
bgpd: improve attr flags checks Do not check each of the Optional/Transitive/Partial attribute flag bits, when their only valid combination is known in advance, but still perform bit-deep error message logging. This change assumes unused (low-order) 4 bits of the flag octet cleared. * bgp_attr.c * bgp_attr_origin(): rewrite check * bgp_attr_nexthop(): idem * bgp_attr_med(): idem * bgp_attr_local_pref(): idem * bgp_attr_atomic(): idem