diff options
| author | Nathan Bahr <nbahr@atcorp.com> | 2025-02-21 17:55:16 +0000 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2025-02-24 18:55:16 +0000 |
| commit | 76e4076d26dfbcf22fefd1eaecb3a490b57d2385 (patch) | |
| tree | 5e030ec17eb30e7b1f8f4a028b0f196ac0afd69f /pimd/pim_instance.c | |
| parent | 24dbcbb31ee5edd79c0ed309e728d6758b8b0e76 (diff) | |
pim: Fix vrf binding of autorp and mroute socket
Bind the autorp socket to the vrf device.
Also fixed mroute socket to use vrf_bind instead of directly
setting the socket option.
Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
(cherry picked from commit 7e181a771c2e525aeda6e8f6c2d58e9ee2503949)
Diffstat (limited to 'pimd/pim_instance.c')
| -rw-r--r-- | pimd/pim_instance.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c index 3945c5923d..358821142e 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -183,6 +183,10 @@ static int pim_vrf_enable(struct vrf *vrf) pim_mroute_socket_enable(pim); +#if PIM_IPV == 4 + pim_autorp_enable(pim); +#endif + FOR_ALL_INTERFACES (vrf, ifp) { if (!ifp->info) continue; |
