Commit 8bd2ec16 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] only allow IGMP to multicast addresses

Old patch by Krishna Ramachandran
parent e496a2dc
......@@ -367,6 +367,12 @@ int igmp_rcv(struct sk_buff *skb)
return 0;
}
if (skb->pkt_type!=PACKET_MULTICAST) {
in_dev_put(in_dev);
kfree_skb(skb);
return 0;
}
switch (ih->type) {
case IGMP_HOST_MEMBERSHIP_QUERY:
igmp_heard_query(in_dev, ih->code, ih->group);
......
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