mirror_frr/ripngd
Igor Ryzhov 6527233f29 Revert "ripngd: Cleanup memory allocations on shutdown"
This reverts commit b1d29673ca.

This commit introduced a crash. When the VRF is deleted, the RIPNG
instance should not be freed, because the NB infrastructure still stores
the pointer to it. The instance should be deleted only when it's actually
deleted from the configuration.

To reproduce the crash:
```
frr# conf t
frr(config)# vrf vrf1
frr(config-vrf)# exit
frr(config)# router ripng vrf vrf1
frr(config-router)# exit
frr(config)# no vrf vrf1
frr(config)# no router ripng vrf vrf1
vtysh: error reading from ripngd: Resource temporarily unavailable (11)Warning: closing connection to ripngd because of an I/O error!
frr(config)#
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit 9f6dade90e)
2023-06-20 14:41:34 +00:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
Makefile build: non-recursive ripd & ripngd 2017-08-04 11:09:50 +02:00
ripng_cli.c build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00
ripng_debug.c *: Create and use infrastructure to show debugs in lib 2022-10-07 12:39:05 -04:00
ripng_debug.h ripngd: fix SIGHUP handling 2018-12-03 13:47:58 -02:00
ripng_interface.c ripngd: Convert thread_cancel to THREAD_OFF 2022-07-21 08:27:35 -04:00
ripng_main.c *: Convert quagga_signal_X to frr_signal_X 2021-11-11 14:41:27 -05:00
ripng_nb_config.c ripngd: Intentionally ignore return code for str2prefix_ipv6 2020-10-11 12:38:42 -04:00
ripng_nb_rpcs.c ripngd: Remove various macros that overlap THREAD_OFF 2022-07-21 08:27:35 -04:00
ripng_nb_state.c zebra: optimize the RIB get_next() callback 2020-05-15 23:47:43 -03:00
ripng_nb.c ripngd: split northbound callbacks into multiple files 2019-10-29 21:49:14 -03:00
ripng_nb.h lib: northbound cli show/cmd functions must not modify data nodes 2021-10-13 20:12:35 +03:00
ripng_nexthop.c *: use compiler.h MIN/MAX macros instead of everyone having one 2021-11-11 09:39:52 -05:00
ripng_nexthop.h *: reindent 2017-07-17 14:04:07 +02:00
ripng_offset.c *: Fix spelling of modifed 2022-04-19 08:20:37 -04:00
ripng_peer.c ripngd: Convert thread_cancel to THREAD_OFF 2022-07-21 08:27:35 -04:00
ripng_route.c *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
ripng_route.h ripngd: remove the ripng global variable 2019-01-18 16:15:41 -02:00
ripng_routemap.c *: Fix spelling of ojbect 2022-04-02 07:46:19 -04:00
ripng_zebra.c *: convert zclient callbacks to table 2021-10-20 13:28:46 +02:00
ripngd.c Revert "ripngd: Cleanup memory allocations on shutdown" 2023-06-20 14:41:34 +00:00
ripngd.h ripngd: Remove various macros that overlap THREAD_OFF 2022-07-21 08:27:35 -04:00
subdir.am build, vtysh: extract vtysh commands from .xref 2022-10-26 17:12:34 +01:00