Commit f9d07e41 authored by Al Viro's avatar Al Viro Committed by David S. Miller

[XFRM]: xfrm_flowi_[sd]port() annotations

both return net-endian
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e2e38e81
...@@ -462,9 +462,9 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen) ...@@ -462,9 +462,9 @@ static __inline__ int addr_match(void *token1, void *token2, int prefixlen)
} }
static __inline__ static __inline__
u16 xfrm_flowi_sport(struct flowi *fl) __be16 xfrm_flowi_sport(struct flowi *fl)
{ {
u16 port; __be16 port;
switch(fl->proto) { switch(fl->proto) {
case IPPROTO_TCP: case IPPROTO_TCP:
case IPPROTO_UDP: case IPPROTO_UDP:
...@@ -487,9 +487,9 @@ u16 xfrm_flowi_sport(struct flowi *fl) ...@@ -487,9 +487,9 @@ u16 xfrm_flowi_sport(struct flowi *fl)
} }
static __inline__ static __inline__
u16 xfrm_flowi_dport(struct flowi *fl) __be16 xfrm_flowi_dport(struct flowi *fl)
{ {
u16 port; __be16 port;
switch(fl->proto) { switch(fl->proto) {
case IPPROTO_TCP: case IPPROTO_TCP:
case IPPROTO_UDP: case IPPROTO_UDP:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment