summaryrefslogtreecommitdiff
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hp.com>2009-10-07 13:58:25 -0700
committerDavid S. Miller <davem@davemloft.net>2009-10-07 13:58:25 -0700
commitb301e82cf8104cfddbe5452ebe625bab49597c64 (patch)
tree49d7f8c91833e0658bf4074c0022bbf34790ce47 /net/ipv6/udp.c
parent86c36ce45dc2e2f022562c6481cd778f4cc381a9 (diff)
downloadlinux-3.10-b301e82cf8104cfddbe5452ebe625bab49597c64.tar.gz
linux-3.10-b301e82cf8104cfddbe5452ebe625bab49597c64.tar.bz2
linux-3.10-b301e82cf8104cfddbe5452ebe625bab49597c64.zip
IPv6: use ipv6_addr_set_v4mapped()
Might as well use the ipv6_addr_set_v4mapped() inline we created last year. Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 3842c557d6f..c6a303ec834 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -265,8 +265,8 @@ try_again:
sin6->sin6_scope_id = 0;
if (is_udp4)
- ipv6_addr_set(&sin6->sin6_addr, 0, 0,
- htonl(0xffff), ip_hdr(skb)->saddr);
+ ipv6_addr_set_v4mapped(ip_hdr(skb)->saddr,
+ &sin6->sin6_addr);
else {
ipv6_addr_copy(&sin6->sin6_addr,
&ipv6_hdr(skb)->saddr);