]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: add missing "partial" flag checks (BZ#676)
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 24 Sep 2011 09:20:43 +0000 (13:20 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 17 Oct 2011 14:27:44 +0000 (18:27 +0400)
commite531d4a662749fdd2a2f83f16e0b1cd252b23ea1
tree7c67d7fa031219777feb9caf85821eca27006e4f
parent19e7654a293cd76854eb5cf98707826efb639326
bgpd: add missing "partial" flag checks (BZ#676)

ORIGIN handling function used to have "partial" bit check and recent
commits added it for NEXT_HOP, MULTI_EXIT_DISC and ATOMIC_AGGREGATE
cases. This commit adds "partial" check for AS_PATH and LOCAL_PREF
cases, which should leave attributes 1 through 6 inclusive completely
covered with attribute flags checks.

* bgp_attr.c
  * bgp_attr_origin(): use bit-by-bit checks for better diagnostics
  * bgp_attr_aspath(): add flag check
  * bgp_attr_local_pref(): idem
bgpd/bgp_attr.c