aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux.h')
-rw-r--r--sys/compat/linux/linux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linux/linux.h b/sys/compat/linux/linux.h
index 40e563014fde..a8cdab07a70b 100644
--- a/sys/compat/linux/linux.h
+++ b/sys/compat/linux/linux.h
@@ -286,6 +286,16 @@ struct l_statx {
ktrstruct("l_sigset_t", (s), l)
#endif
+/*
+ * Criteria for interface name translation
+ */
+#define IFP_IS_ETH(ifp) ((ifp)->if_type == IFT_ETHER)
+#define IFP_IS_LOOP(ifp) ((ifp)->if_type == IFT_LOOP)
+
+struct ifnet;
+
+bool linux_use_real_ifname(const struct ifnet *);
+
void linux_netlink_register(void);
void linux_netlink_deregister(void);