]> git.puffer.fish Git - matthieu/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.abraitis@gmail.com>
Fri, 30 Jul 2021 14:42:30 +0000 (17:42 +0300)
commit0bbfe8d229b3fe887d9902d624c1e3d4a4b1973b
treea57f6a84449cef6227282b23b1037f749a1c6c9a
parent857ff4e7b089afa081b30a3d65999179df291a13
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