diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-28 21:50:49 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-06-28 21:50:49 -0400 |
| commit | 61ea3951a2ecd0d439cb772d566f43e544c8ba48 (patch) | |
| tree | 1662320fd1967d4f57ca5eb1daeaa44724e204ac /pimd/pim_pim.c | |
| parent | bab3cf0a8e7572ace6f5ebc3cde320fd00f5e8e7 (diff) | |
pimd: Bind pim sockets to interface they are associated with
When pim is receiving packets, each interface's fd is receiving
packets for all interfaces. Modify the code to bind the
pim interface sockets to the interface they were created for.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_pim.c')
| -rw-r--r-- | pimd/pim_pim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index a3136b61b2..60507970d9 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -389,7 +389,7 @@ static int pim_sock_open(struct in_addr ifaddr, int ifindex) { int fd; - fd = pim_socket_mcast(IPPROTO_PIM, ifaddr, 0 /* loop=false */); + fd = pim_socket_mcast(IPPROTO_PIM, ifaddr, ifindex, 0 /* loop=false */); if (fd < 0) return -1; |
