diff options
author | Brian Haley <brian.haley@hp.com> | 2007-08-25 02:16:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:32 -0400 |
commit | e773e4faa19c54c2f32ddd16add2919588488bd9 (patch) | |
tree | 316395a9c687155362913ec1c588c0217233f67e /net/ipv6/ipv6_sockglue.c | |
parent | 6f4fc423b96c8fdf6f5c8b8ad79b75b7fb5a5c59 (diff) |
[IPV6]: Add v4mapped address inline
Add v4mapped address inline to avoid calls to ipv6_addr_type().
Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 6b038aa72e88..74254fccbcc8 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -249,7 +249,7 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname, | |||
249 | } | 249 | } |
250 | 250 | ||
251 | if (ipv6_only_sock(sk) || | 251 | if (ipv6_only_sock(sk) || |
252 | !(ipv6_addr_type(&np->daddr) & IPV6_ADDR_MAPPED)) { | 252 | !ipv6_addr_v4mapped(&np->daddr)) { |
253 | retv = -EADDRNOTAVAIL; | 253 | retv = -EADDRNOTAVAIL; |
254 | break; | 254 | break; |
255 | } | 255 | } |