summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 18:45:50 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 18:02:32 -0700
commitf9d07e41f89e7305eb2c0475c170c51d21425581 (patch)
tree9cfdb75f75ffcb6160fcfe579713b6daba538df1 /include
parente2e38e819bd03e9674c102aaa2c9dc8151a3c3d0 (diff)
downloadop-kernel-dev-f9d07e41f89e7305eb2c0475c170c51d21425581.zip
op-kernel-dev-f9d07e41f89e7305eb2c0475c170c51d21425581.tar.gz
[XFRM]: xfrm_flowi_[sd]port() annotations
both return 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')
-rw-r--r--include/net/xfrm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 11e0b1d..17e98c4 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -462,9 +462,9 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen)
}
static __inline__
-u16 xfrm_flowi_sport(struct flowi *fl)
+__be16 xfrm_flowi_sport(struct flowi *fl)
{
- u16 port;
+ __be16 port;
switch(fl->proto) {
case IPPROTO_TCP:
case IPPROTO_UDP:
@@ -487,9 +487,9 @@ u16 xfrm_flowi_sport(struct flowi *fl)
}
static __inline__
-u16 xfrm_flowi_dport(struct flowi *fl)
+__be16 xfrm_flowi_dport(struct flowi *fl)
{
- u16 port;
+ __be16 port;
switch(fl->proto) {
case IPPROTO_TCP:
case IPPROTO_UDP:
OpenPOWER on IntegriCloud