diff options
| -rw-r--r-- | include/net/ip_fib.h | 4 | ||||
| -rw-r--r-- | net/ipv4/fib_semantics.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index 9f84e9fc1b1f..ece746ff4ef8 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h | |||
| @@ -78,7 +78,7 @@ struct fib_info { | |||
| 78 | int fib_dead; | 78 | int fib_dead; |
| 79 | unsigned fib_flags; | 79 | unsigned fib_flags; |
| 80 | int fib_protocol; | 80 | int fib_protocol; |
| 81 | u32 fib_prefsrc; | 81 | __be32 fib_prefsrc; |
| 82 | u32 fib_priority; | 82 | u32 fib_priority; |
| 83 | u32 fib_metrics[RTAX_MAX]; | 83 | u32 fib_metrics[RTAX_MAX]; |
| 84 | #define fib_mtu fib_metrics[RTAX_MTU-1] | 84 | #define fib_mtu fib_metrics[RTAX_MTU-1] |
| @@ -232,7 +232,7 @@ struct rtentry; | |||
| 232 | extern int ip_fib_check_default(u32 gw, struct net_device *dev); | 232 | extern int ip_fib_check_default(u32 gw, struct net_device *dev); |
| 233 | extern int fib_sync_down(u32 local, struct net_device *dev, int force); | 233 | extern int fib_sync_down(u32 local, struct net_device *dev, int force); |
| 234 | extern int fib_sync_up(struct net_device *dev); | 234 | extern int fib_sync_up(struct net_device *dev); |
| 235 | extern u32 __fib_res_prefsrc(struct fib_result *res); | 235 | extern __be32 __fib_res_prefsrc(struct fib_result *res); |
| 236 | 236 | ||
| 237 | /* Exported by fib_hash.c */ | 237 | /* Exported by fib_hash.c */ |
| 238 | extern struct fib_table *fib_hash_init(u32 id); | 238 | extern struct fib_table *fib_hash_init(u32 id); |
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 2ead09543f68..152d9a264fab 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
| @@ -923,7 +923,7 @@ out_fill_res: | |||
| 923 | 923 | ||
| 924 | /* Find appropriate source address to this destination */ | 924 | /* Find appropriate source address to this destination */ |
| 925 | 925 | ||
| 926 | u32 __fib_res_prefsrc(struct fib_result *res) | 926 | __be32 __fib_res_prefsrc(struct fib_result *res) |
| 927 | { | 927 | { |
| 928 | return inet_select_addr(FIB_RES_DEV(*res), FIB_RES_GW(*res), res->scope); | 928 | return inet_select_addr(FIB_RES_DEV(*res), FIB_RES_GW(*res), res->scope); |
| 929 | } | 929 | } |
