aboutsummaryrefslogtreecommitdiff
path: root/include/net/dn_route.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/dn_route.h')
-rw-r--r--include/net/dn_route.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/dn_route.h b/include/net/dn_route.h
index ccadab3aa3f6..9b185df265fb 100644
--- a/include/net/dn_route.h
+++ b/include/net/dn_route.h
@@ -80,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);