|
@@ -1007,10 +1007,18 @@ int igmp_rcv(struct sk_buff *skb)
|
|
{
|
|
{
|
|
/* This basically follows the spec line by line -- see RFC1112 */
|
|
/* This basically follows the spec line by line -- see RFC1112 */
|
|
struct igmphdr *ih;
|
|
struct igmphdr *ih;
|
|
- struct in_device *in_dev = __in_dev_get_rcu(skb->dev);
|
|
|
|
|
|
+ struct net_device *dev = skb->dev;
|
|
|
|
+ struct in_device *in_dev;
|
|
int len = skb->len;
|
|
int len = skb->len;
|
|
bool dropped = true;
|
|
bool dropped = true;
|
|
|
|
|
|
|
|
+ if (netif_is_l3_master(dev)) {
|
|
|
|
+ dev = dev_get_by_index_rcu(dev_net(dev), IPCB(skb)->iif);
|
|
|
|
+ if (!dev)
|
|
|
|
+ goto drop;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ in_dev = __in_dev_get_rcu(dev);
|
|
if (!in_dev)
|
|
if (!in_dev)
|
|
goto drop;
|
|
goto drop;
|
|
|
|
|