summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-09-27 15:47:25 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-09-30 14:11:13 +0400
commitb84b62dfb6ee9daf46c9e4c2c372b179f33be44c (patch)
tree052307acd804e98d224bc4d3246f16c9d02fbad9 /lib/str.c
parent2d42e68aa032ed2f11471aee444935918d35c8bb (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
Diffstat (limited to 'lib/str.c')
0 files changed, 0 insertions, 0 deletions