|
@@ -386,7 +386,11 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, unsigned int mtu)
|
|
pip->frag_off = htons(IP_DF);
|
|
pip->frag_off = htons(IP_DF);
|
|
pip->ttl = 1;
|
|
pip->ttl = 1;
|
|
pip->daddr = fl4.daddr;
|
|
pip->daddr = fl4.daddr;
|
|
|
|
+
|
|
|
|
+ rcu_read_lock();
|
|
pip->saddr = igmpv3_get_srcaddr(dev, &fl4);
|
|
pip->saddr = igmpv3_get_srcaddr(dev, &fl4);
|
|
|
|
+ rcu_read_unlock();
|
|
|
|
+
|
|
pip->protocol = IPPROTO_IGMP;
|
|
pip->protocol = IPPROTO_IGMP;
|
|
pip->tot_len = 0; /* filled in later */
|
|
pip->tot_len = 0; /* filled in later */
|
|
ip_select_ident(net, skb, NULL);
|
|
ip_select_ident(net, skb, NULL);
|