From: Brian Haley Date: Wed, 9 Jan 2008 07:52:21 +0000 (-0800) Subject: [IPV6]: IPV6_MULTICAST_IF setting is ignored on link-local connect() X-Git-Tag: v2.6.24-rc8~54^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ac4f008857487bf45b709248d71c5b3f4cae7b5;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [IPV6]: IPV6_MULTICAST_IF setting is ignored on link-local connect() Signed-off-by: Brian Haley Acked-by: David L Stevens Signed-off-by: David S. Miller --- diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c index 2ed689a..5d4245a 100644 --- a/net/ipv6/datagram.c +++ b/net/ipv6/datagram.c @@ -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;