diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 21:46:32 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:02:34 -0400 |
commit | 5f19343fb19613539355296b23cbc08d1336b52d (patch) | |
tree | 122996f66a4dde454dfdadc7ba25bbb8808ea13c | |
parent | 8f83f23e6db8b9a9fe787d02f73489224668c4e2 (diff) |
[XFRM]: addr_match() annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/xfrm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 17e98c4bd877..b096e9058f3f 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
@@ -437,8 +437,8 @@ static inline void xfrm_state_hold(struct xfrm_state *x) | |||
437 | 437 | ||
438 | static __inline__ int addr_match(void *token1, void *token2, int prefixlen) | 438 | static __inline__ int addr_match(void *token1, void *token2, int prefixlen) |
439 | { | 439 | { |
440 | __u32 *a1 = token1; | 440 | __be32 *a1 = token1; |
441 | __u32 *a2 = token2; | 441 | __be32 *a2 = token2; |
442 | int pdw; | 442 | int pdw; |
443 | int pbi; | 443 | int pbi; |
444 | 444 | ||
@@ -450,7 +450,7 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen) | |||
450 | return 0; | 450 | return 0; |
451 | 451 | ||
452 | if (pbi) { | 452 | if (pbi) { |
453 | __u32 mask; | 453 | __be32 mask; |
454 | 454 | ||
455 | mask = htonl((0xffffffff) << (32 - pbi)); | 455 | mask = htonl((0xffffffff) << (32 - pbi)); |
456 | 456 | ||