summaryrefslogtreecommitdiff
path: root/include/net/inet_timewait_sock.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-28 05:44:10 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-29 05:02:28 +0400
commit82103232edc4b4ed48949a195aca93cfa3fe3fa8 (patch)
tree59df0023c030b466bb4398cf7a42ac3121c8ec09 /include/net/inet_timewait_sock.h
parent23f33c2d4fd5986243b67a2bf5e63ebae1a76ffa (diff)
downloadlinux-82103232edc4b4ed48949a195aca93cfa3fe3fa8.tar.xz
[IPV4]: inet_rcv_saddr() annotations
inet_rcv_saddr() returns 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/net/inet_timewait_sock.h')
-rw-r--r--include/net/inet_timewait_sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/inet_timewait_sock.h b/include/net/inet_timewait_sock.h
index 5794bc6bf0bf..6d14c22a00c5 100644
--- a/include/net/inet_timewait_sock.h
+++ b/include/net/inet_timewait_sock.h
@@ -186,7 +186,7 @@ static inline struct inet_timewait_sock *inet_twsk(const struct sock *sk)
return (struct inet_timewait_sock *)sk;
}
-static inline u32 inet_rcv_saddr(const struct sock *sk)
+static inline __be32 inet_rcv_saddr(const struct sock *sk)
{
return likely(sk->sk_state != TCP_TIME_WAIT) ?
inet_sk(sk)->rcv_saddr : inet_twsk(sk)->tw_rcv_saddr;