commit | b84b62dfb6ee9daf46c9e4c2c372b179f33be44c | [log] [tgz] |
---|---|---|
author | Denis Ovsienko <infrastation@yandex.ru> | Tue Sep 27 15:47:25 2011 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Fri Sep 30 14:11:13 2011 +0400 |
tree | 052307acd804e98d224bc4d3246f16c9d02fbad9 | |
parent | 2d42e68aa032ed2f11471aee444935918d35c8bb [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 Conflicts: bgpd/bgp_attr.c