]> 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)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 29 Jul 2021 21:59:19 +0000 (00:59 +0300)
commit5054cfcbbc8c776a91e9390d36cff891d0890b4f
treeaa86645630e4fe5bc80b9c4fa584057dc0a79bf2
parent31a8ea0f5f5ee90363fb244a2ac81bfb13183987
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