]> git.proxmox.com Git - mirror_frr.git/commit
pimd: Fix wrong setsockopt() call
authoranlan_cs <vic.lan@pica8.com>
Wed, 26 Apr 2023 09:59:58 +0000 (17:59 +0800)
committeranlan_cs <vic.lan@pica8.com>
Thu, 27 Apr 2023 01:15:00 +0000 (09:15 +0800)
commitad855cdf34a9940322547e570f2428d50c4feac7
tree84ab51adc5a8bc194e17617d7f3db8cb4f729e29
parent13c426150fd4699466306d88a917df6493faf9bd
pimd: Fix wrong setsockopt() call

`setsockopt()` should be only called once with `MRT_TABLE`
in "enable" case, otherwise it will fail.  In current code,
`mroute_socket` of "pim instance" with VRF can't be correctly
closed.

Skip it in the "disable" case to let `mroute_socket` safely
closed.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
pimd/pim_mroute.c