]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[IPV4]: struct ipcm_cookie annotation
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 28 Sep 2006 01:28:28 +0000 (18:28 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 01:01:54 +0000 (18:01 -0700)
->addr is net-endian

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip.h
net/ipv4/raw.c

index 6da1229c041a4ce29002a41f3299caa411e81965..b40bd2f9ed794d88f97e531b5ff7af416ce657c6 100644 (file)
@@ -45,7 +45,7 @@ struct inet_skb_parm
 
 struct ipcm_cookie
 {
-       u32                     addr;
+       __be32                  addr;
        int                     oif;
        struct ip_options       *opt;
 };
index 49e5b4b55b9396ec156ec6e6cdaecdf748f39fca..b430cf2a4f6609db27f6ea137e3f18b0281bd442 100644 (file)
@@ -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;