-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bgpd: bmp, add ref counter in bmpbgp structure
The bmpbgp structure is used to store the mirror limit and the bmp target config of a given bgp instance (lets say X). It is wishable to share the bmpbgp structure with a separate BGP instance (lets say Y) that wants to import the BMP information from X. In the case where Y is deleted, the reference to the bmpbgp structure of X can be deleted, but not the bmpbgp structure of X. Fix this by using a reference counter that will be used for each usage: mirror limit, bmp target list, and later vrf importation. Signed-off-by: Philippe Guibert <[email protected]>
- Loading branch information
1 parent
533edb8
commit 6bb03c2
Showing
2 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters