aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 21:47:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:02:37 -0400
commita94cfd19744a568d97b14bbaa500b2a0c3684f34 (patch)
tree1e933aec3969ba63315d147fa39d0103ce311200 /net/xfrm
parent26977b4ed728ae911a162b16dbfe1a165b7cf9a1 (diff)
[XFRM]: xfrm_state_lookup() annotations
spi argument of xfrm_state_lookup() is net-endian Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index e40a8862db5d..3692a4783a75 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -421,7 +421,7 @@ xfrm_init_tempsel(struct xfrm_state *x, struct flowi *fl,
421 return 0; 421 return 0;
422} 422}
423 423
424static struct xfrm_state *__xfrm_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto, unsigned short family) 424static struct xfrm_state *__xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto, unsigned short family)
425{ 425{
426 unsigned int h = xfrm_spi_hash(daddr, spi, proto, family); 426 unsigned int h = xfrm_spi_hash(daddr, spi, proto, family);
427 struct xfrm_state *x; 427 struct xfrm_state *x;
@@ -916,7 +916,7 @@ err:
916EXPORT_SYMBOL(xfrm_state_check); 916EXPORT_SYMBOL(xfrm_state_check);
917 917
918struct xfrm_state * 918struct xfrm_state *
919xfrm_state_lookup(xfrm_address_t *daddr, u32 spi, u8 proto, 919xfrm_state_lookup(xfrm_address_t *daddr, __be32 spi, u8 proto,
920 unsigned short family) 920 unsigned short family)
921{ 921{
922 struct xfrm_state *x; 922 struct xfrm_state *x;