From: Al Viro Date: Thu, 28 Sep 2006 01:28:28 +0000 (-0700) Subject: [IPV4]: struct ipcm_cookie annotation X-Git-Tag: v2.6.19-rc1~858^2~82 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1d18f9fa09489635a451ee13c1727e1683c2333;p=linux-2.6 [IPV4]: struct ipcm_cookie annotation ->addr is net-endian Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/include/net/ip.h b/include/net/ip.h index 6da1229c04..b40bd2f9ed 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -45,7 +45,7 @@ struct inet_skb_parm struct ipcm_cookie { - u32 addr; + __be32 addr; int oif; struct ip_options *opt; }; diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 49e5b4b55b..b430cf2a4f 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, struct rtable *rt = NULL; int free = 0; __be32 daddr; - u32 saddr; + __be32 saddr; u8 tos; int err;