aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/af_inet.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-14 23:51:49 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:22:50 -0500
commit714e85be3557222bc25f69c252326207c900a7db (patch)
treecb59a6d0a94245dc8575507386af1be31dd7fad9 /net/ipv4/af_inet.c
parent252e33467a3b016f20dd8df12269cef3b167f21e (diff)
[IPV6]: Assorted trivial endianness annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r--net/ipv4/af_inet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 8db39f7e3bf0..1144900d37f6 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -644,7 +644,7 @@ int inet_getname(struct socket *sock, struct sockaddr *uaddr,
644 sin->sin_port = inet->dport; 644 sin->sin_port = inet->dport;
645 sin->sin_addr.s_addr = inet->daddr; 645 sin->sin_addr.s_addr = inet->daddr;
646 } else { 646 } else {
647 __u32 addr = inet->rcv_saddr; 647 __be32 addr = inet->rcv_saddr;
648 if (!addr) 648 if (!addr)
649 addr = inet->saddr; 649 addr = inet->saddr;
650 sin->sin_port = inet->sport; 650 sin->sin_port = inet->sport;
@@ -995,8 +995,8 @@ static int inet_sk_reselect_saddr(struct sock *sk)
995 struct inet_sock *inet = inet_sk(sk); 995 struct inet_sock *inet = inet_sk(sk);
996 int err; 996 int err;
997 struct rtable *rt; 997 struct rtable *rt;
998 __u32 old_saddr = inet->saddr; 998 __be32 old_saddr = inet->saddr;
999 __u32 new_saddr; 999 __be32 new_saddr;
1000 __be32 daddr = inet->daddr; 1000 __be32 daddr = inet->daddr;
1001 1001
1002 if (inet->opt && inet->opt->srr) 1002 if (inet->opt && inet->opt->srr)