diff options
Diffstat (limited to 'include/net/dn_route.h')
| -rw-r--r-- | include/net/dn_route.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/net/dn_route.h b/include/net/dn_route.h index 60c9f22d8694..9b185df265fb 100644 --- a/include/net/dn_route.h +++ b/include/net/dn_route.h @@ -65,9 +65,7 @@ extern void dn_rt_cache_flush(int delay); * packets to the originating host. */ struct dn_route { - union { - struct dst_entry dst; - } u; + struct dst_entry dst; struct flowi fl; @@ -82,6 +80,16 @@ struct dn_route { unsigned rt_type; }; +static inline bool dn_is_input_route(struct dn_route *rt) +{ + return rt->fl.iif != 0; +} + +static inline bool dn_is_output_route(struct dn_route *rt) +{ + return rt->fl.iif == 0; +} + extern void dn_route_init(void); extern void dn_route_cleanup(void); |
