]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix PIM VRF support (send register/register stop in VRF) 18250/head
authorMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Fri, 21 Feb 2025 07:54:49 +0000 (08:54 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 24 Feb 2025 18:57:32 +0000 (18:57 +0000)
commite933d37f4a87e2386a532e2a6ecc49d281a5575b
tree2803efc0d1709f8ff6ac77a24d34cdafd42a09a2
parentc3e264e27ac5b682c4647aeeaf4e61f09d5243f9
pimd: Fix PIM VRF support (send register/register stop in VRF)

In 946195391406269003275850e1a4d550ea8db38b and
8ebcc02328c6b63ecf85e44fdfbf3365be27c127, transmission of PIM register and
register stop messages was changed to use a separate socket. However, that
socket is not bound to a possible VRF, so the messages were sent in the
default VRF instead. Call vrf_bind() once after socket creation and when the
VRF is ready to ensure transmission in the correct VRF. vrf_bind() handles
the non-VRF case (i.e. VRF_DEFAULT) automatically, so it may be called
unconditionally.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
(cherry picked from commit 5a01011e0d2db538a8ba523904bd4f08b786edfb)
pimd/pim_instance.c