]> git.puffer.fish Git - matthieu/frr.git/commit
[bgpd] Handle pcount as flags are changed, fixing pcount issues
authorPaul Jakma <paul.jakma@sun.com>
Thu, 7 Sep 2006 00:24:49 +0000 (00:24 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Thu, 7 Sep 2006 00:24:49 +0000 (00:24 +0000)
commit1a392d46db1917dfca2ddd06d7f0021396f8ecfa
tree8dec4a2e583c9a1890fd62d647dcd5a27d14bde1
parentff7924f6c0437e2f3cc3710570414ae87a828724
[bgpd] Handle pcount as flags are changed, fixing pcount issues

2006-09-06 Paul Jakma <paul.jakma@sun.com>

* (general) Squash any and all prefix-count issues by
  abstracting route flag changes, and maintaining count as and
  when flags are modified (rather than relying on explicit
  modifications of count being sprinkled in just the right
  places throughout the code).
* bgp_route.c: (bgp_pcount_{dec,inc}rement) removed.
  (bgp_pcount_adjust) new, update prefix count as
  needed for a given route.
  (bgp_info_{uns,s}et_flag) set/unset a BGP_INFO route status
  flag, calling previous function when appropriate.
  (general) Update all set/unsets of flags to use previous.
  Remove pcount_{dec,inc}rement calls.
  No need to unset BGP_INFO_VALID in places where
  bgp_info_delete is called, it does that anyway.
* bgp_{damp,nexthop}.c: Update to use bgp_info_{un,}set_flag.
* bgp_route.h: Export bgp_info_{un,}set_flag.
  Add a 'meta' BGP_INFO flag, BGP_INFO_UNUSEABLE.
  Move BGP_INFO_HOLDDOWN macro to here from bgpd.h
bgpd/ChangeLog
bgpd/bgp_damp.c
bgpd/bgp_nexthop.c
bgpd/bgp_route.c
bgpd/bgp_route.h
bgpd/bgpd.h