diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 18:44:54 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 18:02:30 -0700 |
commit | 48818f822d2b2e16f4bf4d1ed1185e7d2146dc34 (patch) | |
tree | 2dbc1c04e79f773b0805aff0da9547e857035ea1 /include/net | |
parent | 9f8552996d969f56039ec88128cf5ad35b12f141 (diff) | |
download | kernel_samsung_smdk4412-48818f822d2b2e16f4bf4d1ed1185e7d2146dc34.zip kernel_samsung_smdk4412-48818f822d2b2e16f4bf4d1ed1185e7d2146dc34.tar.gz kernel_samsung_smdk4412-48818f822d2b2e16f4bf4d1ed1185e7d2146dc34.tar.bz2 |
[IPV6]: struct in6_addr annotations
in6_addr elements are net-endian
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ipv6.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 72bf47b..8223c44 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -318,8 +318,8 @@ static inline void ipv6_addr_prefix(struct in6_addr *pfx, #ifndef __HAVE_ARCH_ADDR_SET static inline void ipv6_addr_set(struct in6_addr *addr, - __u32 w1, __u32 w2, - __u32 w3, __u32 w4) + __be32 w1, __be32 w2, + __be32 w3, __be32 w4) { addr->s6_addr32[0] = w1; addr->s6_addr32[1] = w2; @@ -337,7 +337,7 @@ static inline int ipv6_addr_equal(const struct in6_addr *a1, a1->s6_addr32[3] == a2->s6_addr32[3]); } -static inline int __ipv6_prefix_equal(const u32 *a1, const u32 *a2, +static inline int __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, unsigned int prefixlen) { unsigned pdw, pbi; |