mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[IGMP]: workaround for IGMP v1/v2 bug
From: David Stevens <[email protected]> As explained at: http://www.cs.ucsb.edu/~krishna/igmp_dos/ With IGMP version 1 and 2 it is possible to inject a unicast report to a client which will make it ignore multicast reports sent later by the router. The fix is to only accept the report if is was sent to a multicast or unicast address. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
bf031fff1f
commit
24c6927505
2 changed files with 9 additions and 1 deletions
|
|
@ -897,7 +897,10 @@ int igmp_rcv(struct sk_buff *skb)
|
|||
/* Is it our report looped back? */
|
||||
if (((struct rtable*)skb->dst)->fl.iif == 0)
|
||||
break;
|
||||
igmp_heard_report(in_dev, ih->group);
|
||||
/* don't rely on MC router hearing unicast reports */
|
||||
if (skb->pkt_type == PACKET_MULTICAST ||
|
||||
skb->pkt_type == PACKET_BROADCAST)
|
||||
igmp_heard_report(in_dev, ih->group);
|
||||
break;
|
||||
case IGMP_PIM:
|
||||
#ifdef CONFIG_IP_PIMSM_V1
|
||||
|
|
|
|||
Loading…
Reference in a new issue