]> err.no Git - linux-2.6/commitdiff
[IPV4]: annotate ipv4 addresses in struct rtable and struct flowi
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Sep 2006 04:26:42 +0000 (21:26 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 00:54:05 +0000 (17:54 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow.h
include/net/route.h

index 3ca210ec1379f549e0e2f0d4e3fd821283b70709..97569af9bda7213efad5a388b2b9587375eff3b1 100644 (file)
@@ -16,8 +16,8 @@ struct flowi {
 
        union {
                struct {
-                       __u32                   daddr;
-                       __u32                   saddr;
+                       __be32                  daddr;
+                       __be32                  saddr;
                        __u32                   fwmark;
                        __u8                    tos;
                        __u8                    scope;
index 64a18811526d6c13d9d9bcb29ad2a6d4e6fe9550..5bb2b15b4391f0d08dab5321d33bf432f217ef12 100644 (file)
@@ -62,18 +62,18 @@ struct rtable
        __u16                   rt_type;
        __u16                   rt_multipath_alg;
 
-       __u32                   rt_dst; /* Path destination     */
-       __u32                   rt_src; /* Path source          */
+       __be32                  rt_dst; /* Path destination     */
+       __be32                  rt_src; /* Path source          */
        int                     rt_iif;
 
        /* Info on neighbour */
-       __u32                   rt_gateway;
+       __be32                  rt_gateway;
 
        /* Cache lookup keys */
        struct flowi            fl;
 
        /* Miscellaneous cached information */
-       __u32                   rt_spec_dst; /* RFC1122 specific destination */
+       __be32                  rt_spec_dst; /* RFC1122 specific destination */
        struct inet_peer        *peer; /* long-living peer info */
 };