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_igmp.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_igmp.c')
| -rw-r--r-- | pimd/pim_igmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index 43fac9a166..176470e201 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -54,7 +54,7 @@ static int igmp_sock_open(struct in_addr ifaddr, int ifindex, uint32_t pim_optio int join = 0; struct in_addr group; - fd = pim_socket_mcast(IPPROTO_IGMP, ifaddr, 1 /* loop=true */); + fd = pim_socket_mcast(IPPROTO_IGMP, ifaddr, ifindex, 1 /* loop=true */); if (fd < 0) return -1; |
