diff options
| author | Nathan Bahr <nbahr@atcorp.com> | 2025-02-24 20:23:52 +0000 | 
|---|---|---|
| committer | Nathan Bahr <nbahr@atcorp.com> | 2025-02-24 20:23:52 +0000 | 
| commit | 06956e881c139674e67f017d387a28e1a60531c8 (patch) | |
| tree | e6d6b111b0dc1706e1fe768354ab9e242ac75539 /pimd/pim_instance.c | |
| parent | 2539e678848b8f9f629c395c6c21770cc9237d09 (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)
Fixed merge conflicts
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 f7c5ea3bcf..37b179a827 100644 --- a/pimd/pim_instance.c +++ b/pimd/pim_instance.c @@ -188,6 +188,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;  | 
