mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-12 19:41:15 +00:00
![]() When a static route with a gateway nexthop is created, the nexthop is sent to zebra for NHT, and added to a local hash. When the nexthop's VRF is deleted from kernel, nexthop still stays in the hash. This is a memory leak, because it is never deleted from there. Even if the VRF is recreated in kernel, it is assigned with a new `vrf_id` so the old hash entry is not reused, and a new one is created. To fix the issue, remove all nexthops from the hash when the corresponding VRF is deleted, do not add nexthops to the hash if their corresponding VRF doesn't exist in kernel and don't add the same nexthop to the hash multiple times. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
static_bfd.c | ||
static_debug.c | ||
static_debug.h | ||
static_main.c | ||
static_nb_config.c | ||
static_nb.c | ||
static_nb.h | ||
static_nht.c | ||
static_nht.h | ||
static_routes.c | ||
static_routes.h | ||
static_vrf.c | ||
static_vrf.h | ||
static_vty.c | ||
static_vty.h | ||
static_zebra.c | ||
static_zebra.h | ||
subdir.am |