]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix incorrect usage of slist in dampening
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Jul 2021 22:17:50 +0000 (01:17 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 3 May 2024 06:30:32 +0000 (09:30 +0300)
commit1d37871588b82ae17ee4c512c293ac87904883d6
treec5afa86cab2b363c69a1f8e6d3b8af9b1c0375e8
parent4c500d6952ea597eb7422358e18788547eed92a6
bgpd: fix incorrect usage of slist in dampening

Current code is a complete misuse of SLIST structure. Instead of just
adding a SLIST_ENTRY to struct bgp_damp_info, it allocates a separate
structure to be a node in the list.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_damp.c
bgpd/bgp_damp.h