diff options
Diffstat (limited to 'net/ipv6/icmp.c')
| -rw-r--r-- | net/ipv6/icmp.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 9554b99a8508..4527285fcaa2 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c @@ -446,6 +446,8 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)  	if (__ipv6_addr_needs_scope_id(addr_type))  		iif = skb->dev->ifindex; +	else +		iif = l3mdev_master_ifindex(skb->dev);  	/*  	 *	Must not send error if the source does not uniquely @@ -500,9 +502,6 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)  	else if (!fl6.flowi6_oif)  		fl6.flowi6_oif = np->ucast_oif; -	if (!fl6.flowi6_oif) -		fl6.flowi6_oif = l3mdev_master_ifindex(skb->dev); -  	dst = icmpv6_route_lookup(net, skb, sk, &fl6);  	if (IS_ERR(dst))  		goto out;  |