]> 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>
Fri, 30 Sep 2011 06:30:36 +0000 (10:30 +0400)
commit214bcaa13e092d9fff8f233e62ba28ca7eefbc43
treeeb429544fd7d6727f35cd3fc24b6426a6d577eb3
parentbc3443ebf032b5fcc9e0ccb94641e4e899cd17d8
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

Conflicts:

bgpd/bgp_attr.c
bgpd/bgp_attr.c