summaryrefslogtreecommitdiff
path: root/pimd/pim_sock.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-07-26 12:20:54 +0300
committerGitHub <noreply@github.com>2021-07-26 12:20:54 +0300
commit66aa87d03e547272c219f1323e880ede401f47d3 (patch)
treec561686ed71e1e42e50684beb12958d7ca9668ad /pimd/pim_sock.c
parentc48ebbdb2021fb01a1a8a7ad8ef9ef99e418c6a3 (diff)
parenta2810d30256e8de250b9e0fdc274fc4852c7877c (diff)
Merge pull request #8637 from opensourcerouting/pim-vrf-acl-fixes
Pim vrf acl fixes
Diffstat (limited to 'pimd/pim_sock.c')
-rw-r--r--pimd/pim_sock.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 504519c8a4..05b0f92a4b 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -112,17 +112,15 @@ int pim_socket_mcast(int protocol, struct in_addr ifaddr, struct interface *ifp,
}
#ifdef SO_BINDTODEVICE
- if (protocol == IPPROTO_PIM) {
- int ret;
+ int ret;
- ret = pim_socket_bind(fd, ifp);
- if (ret) {
- close(fd);
- zlog_warn(
- "Could not set fd: %d for interface: %s to device",
- fd, ifp->name);
- return PIM_SOCK_ERR_BIND;
- }
+ ret = pim_socket_bind(fd, ifp);
+ if (ret) {
+ close(fd);
+ zlog_warn(
+ "Could not set fd: %d for interface: %s to device",
+ fd, ifp->name);
+ return PIM_SOCK_ERR_BIND;
}
#else
/* XXX: use IP_PKTINFO / IP_RECVIF to emulate behaviour? Or change to