projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f83f23
)
[XFRM]: addr_match() annotations
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 28 Sep 2006 01:46:32 +0000
(18:46 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:02:34 +0000
(18:02 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/xfrm.h
b/include/net/xfrm.h
index 17e98c4bd87703bd574b40010efa78ce8f2323e7..b096e9058f3f5be4767e5d875c83bdbb1bf6fee6 100644
(file)
--- a/
include/net/xfrm.h
+++ b/
include/net/xfrm.h
@@
-437,8
+437,8
@@
static inline void xfrm_state_hold(struct xfrm_state *x)
static __inline__ int addr_match(void *token1, void *token2, int prefixlen)
{
- __
u
32 *a1 = token1;
- __
u
32 *a2 = token2;
+ __
be
32 *a1 = token1;
+ __
be
32 *a2 = token2;
int pdw;
int pbi;
@@
-450,7
+450,7
@@
static __inline__ int addr_match(void *token1, void *token2, int prefixlen)
return 0;
if (pbi) {
- __
u
32 mask;
+ __
be
32 mask;
mask = htonl((0xffffffff) << (32 - pbi));