aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/route.h b/include/net/route.h
index e789a92fd602..4bafe0bfe829 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -47,8 +47,8 @@ struct rtable {
47 int rt_genid; 47 int rt_genid;
48 unsigned int rt_flags; 48 unsigned int rt_flags;
49 __u16 rt_type; 49 __u16 rt_type;
50 __u16 rt_is_input;
50 51
51 int rt_route_iif;
52 int rt_iif; 52 int rt_iif;
53 53
54 /* Info on neighbour */ 54 /* Info on neighbour */
@@ -61,12 +61,12 @@ struct rtable {
61 61
62static inline bool rt_is_input_route(const struct rtable *rt) 62static inline bool rt_is_input_route(const struct rtable *rt)
63{ 63{
64 return rt->rt_route_iif != 0; 64 return rt->rt_is_input != 0;
65} 65}
66 66
67static inline bool rt_is_output_route(const struct rtable *rt) 67static inline bool rt_is_output_route(const struct rtable *rt)
68{ 68{
69 return rt->rt_route_iif == 0; 69 return rt->rt_is_input == 0;
70} 70}
71 71
72static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) 72static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr)