summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/route.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index ae59efa..97709f1 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -219,6 +219,7 @@ fib_rte_to_nh_flags(int rt_flags)
return (res);
}
+#ifdef _KERNEL
/* rte<>ro_flags translation */
static inline void
rt_update_ro_flags(struct route *ro)
@@ -231,6 +232,7 @@ rt_update_ro_flags(struct route *ro)
ro->ro_flags |= (rt_flags & RTF_BLACKHOLE) ? RT_BLACKHOLE : 0;
ro->ro_flags |= (rt_flags & RTF_GATEWAY) ? RT_HAS_GW : 0;
}
+#endif
/*
* Routing statistics.
OpenPOWER on IntegriCloud