Skip to content

Commit

Permalink
[XFRM]: xfrm_flowi_[sd]port() annotations
Browse files Browse the repository at this point in the history
both return net-endian

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent e2e38e8 commit f9d07e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/net/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f9d07e4

Please sign in to comment.