mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 19:10:35 +00:00
pimd: IGMP sockets need to be iface-bound too
There's an IGMP socket per interface, so they should be bound to that interface. Which also makes IGMP work in VRFs. Fixes: #7889 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
12536067cc
commit
f06c6e3ef9
@ -112,7 +112,6 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
|
||||
}
|
||||
|
||||
#ifdef SO_BINDTODEVICE
|
||||
if (protocol == IPPROTO_PIM) {
|
||||
int ret;
|
||||
|
||||
ret = pim_socket_bind(fd, ifp);
|
||||
@ -123,7 +122,6 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
|
||||
fd, ifp->name);
|
||||
return PIM_SOCK_ERR_BIND;
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* XXX: use IP_PKTINFO / IP_RECVIF to emulate behaviour? Or change to
|
||||
* only use 1 socket for all interfaces? */
|
||||
|
Loading…
Reference in New Issue
Block a user