diff options
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/net/route.h b/include/net/route.h index 30d6cae3841a..8fce0621cad1 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -64,6 +64,7 @@ struct rtable { | |||
64 | 64 | ||
65 | __be32 rt_dst; /* Path destination */ | 65 | __be32 rt_dst; /* Path destination */ |
66 | __be32 rt_src; /* Path source */ | 66 | __be32 rt_src; /* Path source */ |
67 | int rt_route_iif; | ||
67 | int rt_iif; | 68 | int rt_iif; |
68 | int rt_oif; | 69 | int rt_oif; |
69 | __u32 rt_mark; | 70 | __u32 rt_mark; |
@@ -80,12 +81,12 @@ struct rtable { | |||
80 | 81 | ||
81 | static inline bool rt_is_input_route(struct rtable *rt) | 82 | static inline bool rt_is_input_route(struct rtable *rt) |
82 | { | 83 | { |
83 | return rt->rt_iif != 0; | 84 | return rt->rt_route_iif != 0; |
84 | } | 85 | } |
85 | 86 | ||
86 | static inline bool rt_is_output_route(struct rtable *rt) | 87 | static inline bool rt_is_output_route(struct rtable *rt) |
87 | { | 88 | { |
88 | return rt->rt_iif == 0; | 89 | return rt->rt_route_iif == 0; |
89 | } | 90 | } |
90 | 91 | ||
91 | struct ip_rt_acct { | 92 | struct ip_rt_acct { |
@@ -207,6 +208,7 @@ extern int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb); | |||
207 | 208 | ||
208 | struct in_ifaddr; | 209 | struct in_ifaddr; |
209 | extern void fib_add_ifaddr(struct in_ifaddr *); | 210 | extern void fib_add_ifaddr(struct in_ifaddr *); |
211 | extern void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); | ||
210 | 212 | ||
211 | static inline void ip_rt_put(struct rtable * rt) | 213 | static inline void ip_rt_put(struct rtable * rt) |
212 | { | 214 | { |
@@ -269,8 +271,8 @@ static inline struct rtable *ip_route_newports(struct rtable *rt, | |||
269 | struct flowi4 fl4 = { | 271 | struct flowi4 fl4 = { |
270 | .flowi4_oif = rt->rt_oif, | 272 | .flowi4_oif = rt->rt_oif, |
271 | .flowi4_mark = rt->rt_mark, | 273 | .flowi4_mark = rt->rt_mark, |
272 | .daddr = rt->rt_key_dst, | 274 | .daddr = rt->rt_dst, |
273 | .saddr = rt->rt_key_src, | 275 | .saddr = rt->rt_src, |
274 | .flowi4_tos = rt->rt_tos, | 276 | .flowi4_tos = rt->rt_tos, |
275 | .flowi4_proto = protocol, | 277 | .flowi4_proto = protocol, |
276 | .fl4_sport = sport, | 278 | .fl4_sport = sport, |