diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 21:45:50 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:02:32 -0400 |
commit | f9d07e41f89e7305eb2c0475c170c51d21425581 (patch) | |
tree | 9cfdb75f75ffcb6160fcfe579713b6daba538df1 /include | |
parent | e2e38e819bd03e9674c102aaa2c9dc8151a3c3d0 (diff) |
[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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 11e0b1d6bd47..17e98c4bd877 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) | |||
462 | } | 462 | } |
463 | 463 | ||
464 | static __inline__ | 464 | static __inline__ |
465 | u16 xfrm_flowi_sport(struct flowi *fl) | 465 | __be16 xfrm_flowi_sport(struct flowi *fl) |
466 | { | 466 | { |
467 | u16 port; | 467 | __be16 port; |
468 | switch(fl->proto) { | 468 | switch(fl->proto) { |
469 | case IPPROTO_TCP: | 469 | case IPPROTO_TCP: |
470 | case IPPROTO_UDP: | 470 | case IPPROTO_UDP: |
@@ -487,9 +487,9 @@ u16 xfrm_flowi_sport(struct flowi *fl) | |||
487 | } | 487 | } |
488 | 488 | ||
489 | static __inline__ | 489 | static __inline__ |
490 | u16 xfrm_flowi_dport(struct flowi *fl) | 490 | __be16 xfrm_flowi_dport(struct flowi *fl) |
491 | { | 491 | { |
492 | u16 port; | 492 | __be16 port; |
493 | switch(fl->proto) { | 493 | switch(fl->proto) { |
494 | case IPPROTO_TCP: | 494 | case IPPROTO_TCP: |
495 | case IPPROTO_UDP: | 495 | case IPPROTO_UDP: |