summaryrefslogtreecommitdiff
path: root/bgpd/bgp_damp.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-02 13:01:18 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-08-03 21:54:47 +0300
commitaa95cf73a476b1819d01b0223624262335829672 (patch)
treed0fc64a6d10f20cec6938a711f8c7b5c2ac2d5b7 /bgpd/bgp_damp.h
parent5c8846f6e8971f942447ad2d177e8c3cf1a2433d (diff)
Revert "bgpd: fix incorrect usage of slist in dampening"
This reverts commit 5054cfcbbc8c776a91e9390d36cff891d0890b4f.
Diffstat (limited to 'bgpd/bgp_damp.h')
-rw-r--r--bgpd/bgp_damp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/bgpd/bgp_damp.h b/bgpd/bgp_damp.h
index 2e41d2fbda..8367f291c7 100644
--- a/bgpd/bgp_damp.h
+++ b/bgpd/bgp_damp.h
@@ -61,11 +61,14 @@ struct bgp_damp_info {
afi_t afi;
safi_t safi;
+};
- SLIST_ENTRY(bgp_damp_info) entry;
+struct reuselist_node {
+ SLIST_ENTRY(reuselist_node) entry;
+ struct bgp_damp_info *info;
};
-SLIST_HEAD(reuselist, bgp_damp_info);
+SLIST_HEAD(reuselist, reuselist_node);
/* Specified parameter set configuration. */
struct bgp_damp_config {