diff options
Diffstat (limited to 'include/net/ipv6.h')
-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 72bf47b2a4e0..8223c4410b4b 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, | |||
318 | 318 | ||
319 | #ifndef __HAVE_ARCH_ADDR_SET | 319 | #ifndef __HAVE_ARCH_ADDR_SET |
320 | static inline void ipv6_addr_set(struct in6_addr *addr, | 320 | static inline void ipv6_addr_set(struct in6_addr *addr, |
321 | __u32 w1, __u32 w2, | 321 | __be32 w1, __be32 w2, |
322 | __u32 w3, __u32 w4) | 322 | __be32 w3, __be32 w4) |
323 | { | 323 | { |
324 | addr->s6_addr32[0] = w1; | 324 | addr->s6_addr32[0] = w1; |
325 | addr->s6_addr32[1] = w2; | 325 | addr->s6_addr32[1] = w2; |
@@ -337,7 +337,7 @@ static inline int ipv6_addr_equal(const struct in6_addr *a1, | |||
337 | a1->s6_addr32[3] == a2->s6_addr32[3]); | 337 | a1->s6_addr32[3] == a2->s6_addr32[3]); |
338 | } | 338 | } |
339 | 339 | ||
340 | static inline int __ipv6_prefix_equal(const u32 *a1, const u32 *a2, | 340 | static inline int __ipv6_prefix_equal(const __be32 *a1, const __be32 *a2, |
341 | unsigned int prefixlen) | 341 | unsigned int prefixlen) |
342 | { | 342 | { |
343 | unsigned pdw, pbi; | 343 | unsigned pdw, pbi; |