]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[IPV4]: FIB_RES_PREFSRC() annotated
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 27 Sep 2006 05:14:15 +0000 (22:14 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 29 Sep 2006 00:54:13 +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/ip_fib.h
net/ipv4/fib_semantics.c

index 9f84e9fc1b1f56f29b04a983e58d07f418adb034..ece746ff4ef89c165d990ab2ac1adae3bef15118 100644 (file)
@@ -78,7 +78,7 @@ struct fib_info {
        int                     fib_dead;
        unsigned                fib_flags;
        int                     fib_protocol;
-       u32                     fib_prefsrc;
+       __be32                  fib_prefsrc;
        u32                     fib_priority;
        u32                     fib_metrics[RTAX_MAX];
 #define fib_mtu fib_metrics[RTAX_MTU-1]
@@ -232,7 +232,7 @@ struct rtentry;
 extern int ip_fib_check_default(u32 gw, struct net_device *dev);
 extern int fib_sync_down(u32 local, struct net_device *dev, int force);
 extern int fib_sync_up(struct net_device *dev);
-extern u32  __fib_res_prefsrc(struct fib_result *res);
+extern __be32  __fib_res_prefsrc(struct fib_result *res);
 
 /* Exported by fib_hash.c */
 extern struct fib_table *fib_hash_init(u32 id);
index 2ead09543f68899bef4ef584fd2c029d9e8b7df9..152d9a264fab12ec06a5d65d47dff87513331203 100644 (file)
@@ -923,7 +923,7 @@ out_fill_res:
 
 /* Find appropriate source address to this destination */
 
-u32 __fib_res_prefsrc(struct fib_result *res)
+__be32 __fib_res_prefsrc(struct fib_result *res)
 {
        return inet_select_addr(FIB_RES_DEV(*res), FIB_RES_GW(*res), res->scope);
 }