mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[IPV6]: IPV6_MULTICAST_IF setting is ignored on link-local connect()
Signed-off-by: Brian Haley <[email protected]> Acked-by: David L Stevens <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cf585ae8ae
commit
1ac4f00885
1 changed files with 3 additions and 3 deletions
|
|
@ -123,11 +123,11 @@ ipv4_connected:
|
|||
goto out;
|
||||
}
|
||||
sk->sk_bound_dev_if = usin->sin6_scope_id;
|
||||
if (!sk->sk_bound_dev_if &&
|
||||
(addr_type & IPV6_ADDR_MULTICAST))
|
||||
fl.oif = np->mcast_oif;
|
||||
}
|
||||
|
||||
if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST))
|
||||
sk->sk_bound_dev_if = np->mcast_oif;
|
||||
|
||||
/* Connect to link-local address requires an interface */
|
||||
if (!sk->sk_bound_dev_if) {
|
||||
err = -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue