diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2011-09-27 15:47:25 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-10-17 18:27:55 +0400 |
commit | 395ec7f5ab794eb5205a7386b890ccb9b1313580 (patch) | |
tree | 300b6a9a988317a3f3853717d940915693931ee0 /bgpd/bgp_damp.h | |
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
Diffstat (limited to 'bgpd/bgp_damp.h')
0 files changed, 0 insertions, 0 deletions