Commit d52f4ead authored by David Stevens's avatar David Stevens Committed by Arnaldo Carvalho de Melo

[IGMP]: Fix bug in broadcast handling.

parent 3a3a07de
...@@ -1991,6 +1991,9 @@ int ip_mc_sf_allow(struct sock *sk, u32 loc_addr, u32 rmt_addr, int dif) ...@@ -1991,6 +1991,9 @@ int ip_mc_sf_allow(struct sock *sk, u32 loc_addr, u32 rmt_addr, int dif)
struct ip_sf_socklist *psl; struct ip_sf_socklist *psl;
int i; int i;
if (!MULTICAST(loc_addr))
return 1;
for (pmc=inet->mc_list; pmc; pmc=pmc->next) { for (pmc=inet->mc_list; pmc; pmc=pmc->next) {
if (pmc->multi.imr_multiaddr.s_addr == loc_addr && if (pmc->multi.imr_multiaddr.s_addr == loc_addr &&
pmc->multi.imr_ifindex == dif) pmc->multi.imr_ifindex == dif)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment