Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pimd: Fix PIM VRF support (send register/register stop in VRF)
In 9461953 and 8ebcc02, 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 <[email protected]> (cherry picked from commit 5a01011)
- Loading branch information