diff options
author | paul <paul> | 2006-02-05 17:51:19 +0000 |
---|---|---|
committer | paul <paul> | 2006-02-05 17:51:19 +0000 |
commit | 902212c3f3df5198a6cdf2c95e4686790e437f6f (patch) | |
tree | 7587a283dd51a6d5a896111ec294683d077d4274 /bgpd/bgp_route.h | |
parent | 306d8890439cdb9128d063ee2f77700a11e6843c (diff) | |
download | quagga-902212c3f3df5198a6cdf2c95e4686790e437f6f.tar.bz2 quagga-902212c3f3df5198a6cdf2c95e4686790e437f6f.tar.xz |
[bgpd] Fix peer prefix counts and make it slightly more robust
2006-02-05 Paul Jakma <paul.jakma@sun.com>
* bgp_route.h: Add BGP_INFO_COUNTED to track whether
prefix has been counted or not.
* bgp_route.c: (bgp_pcount_{inc,dec}rement) new helpers, to
centralise inc/dec of prefix-count,
(bgp_rib_remove) Remove pcount decrement, use helper.
(bgp_rib_withdraw) ditto, additionally use previous function
too.
(bgp_update_main) Use pcount helpers.
(bgp_clear_route_node) ditto, aslo REMOVED routes don't need
clearing.
Diffstat (limited to 'bgpd/bgp_route.h')
-rw-r--r-- | bgpd/bgp_route.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index aa2c59ec..24be30ff 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -55,6 +55,7 @@ struct bgp_info #define BGP_INFO_DMED_SELECTED (1 << 7) #define BGP_INFO_STALE (1 << 8) #define BGP_INFO_REMOVED (1 << 9) +#define BGP_INFO_COUNTED (1 << 10) /* Peer structure. */ struct peer *peer; |