aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-09-27 21:28:28 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-28 21:01:54 -0400
commitc1d18f9fa09489635a451ee13c1727e1683c2333 (patch)
treef44abb3c8ac44ec7113c00d2ca86bb2e33488464
parent3ca3c68e76686bee058937ade2b96f4de58ee434 (diff)
[IPV4]: struct ipcm_cookie annotation
->addr is net-endian Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/ip.h2
-rw-r--r--net/ipv4/raw.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 6da1229c041a..b40bd2f9ed79 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -45,7 +45,7 @@ struct inet_skb_parm
45 45
46struct ipcm_cookie 46struct ipcm_cookie
47{ 47{
48 u32 addr; 48 __be32 addr;
49 int oif; 49 int oif;
50 struct ip_options *opt; 50 struct ip_options *opt;
51}; 51};
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index 49e5b4b55b93..b430cf2a4f66 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -382,7 +382,7 @@ static int raw_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
382 struct rtable *rt = NULL; 382 struct rtable *rt = NULL;
383 int free = 0; 383 int free = 0;
384 __be32 daddr; 384 __be32 daddr;
385 u32 saddr; 385 __be32 saddr;
386 u8 tos; 386 u8 tos;
387 int err; 387 int err;
388 388