diff options
author | Erich E. Hoover <ehoover@mines.edu> | 2012-02-08 13:11:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-09 00:52:45 +0400 |
commit | c4062dfc425e94290ac427a98d6b4721dd2bc91f (patch) | |
tree | 30180df3e11ded7ed8ea2c3c4525092d0711f1af /net/ipv6/udp.c | |
parent | 76e21053b5bf33a07c76f99d27a74238310e3c71 (diff) | |
download | linux-c4062dfc425e94290ac427a98d6b4721dd2bc91f.tar.xz |
ipv6: Implement IPV6_UNICAST_IF socket option.
The IPV6_UNICAST_IF feature is the IPv6 compliment to IP_UNICAST_IF.
Signed-off-by: Erich E. Hoover <ehoover@mines.edu>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 4f96b5c63685..8aebf8f90436 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -1130,7 +1130,8 @@ do_udp_sendmsg: if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr)) { fl6.flowi6_oif = np->mcast_oif; connected = 0; - } + } else if (!fl6.flowi6_oif) + fl6.flowi6_oif = np->ucast_oif; security_sk_classify_flow(sk, flowi6_to_flowi(&fl6)); |