diff options
| author | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-02-14 14:46:32 +0000 |
|---|---|---|
| committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2023-02-27 18:15:25 +0000 |
| commit | 8fd0f86abdfa8b98facb22649cb03545d0cf0df6 (patch) | |
| tree | 1a2f9b803e726ffc1a87d9d1cac4d298c5a34d02 /sys/compat/linux/linux.h | |
| parent | a052a188766f022d4b0cb2484bda636a3345f644 (diff) | |
Diffstat (limited to 'sys/compat/linux/linux.h')
| -rw-r--r-- | sys/compat/linux/linux.h | 10 |
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); |
