diff options
author | Tom Jones <thj@freebsd.org> | 2024-01-29 15:12:34 +0000 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-02-18 16:05:33 +0000 |
commit | 9bf4f8fb5823f108601b50ba4b787f17b854abdc (patch) | |
tree | 4e2aa1801ce67c93ca69e9cf7b548dfa6ab83a52 /src/vnet | |
parent | 0f7830023a11872602011535320802fd65c0b0bb (diff) |
vnet: Use platform specific netlink headers on FreeBSD
Type: improvement
Change-Id: Ifbd84a45edc82c79ac2850dd70ecdd2f9f1289ae
Signed-off-by: Tom Jones <thj@freebsd.org>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/devices/netlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/devices/netlink.c b/src/vnet/devices/netlink.c index da21e9adea1..3fd3e13bf77 100644 --- a/src/vnet/devices/netlink.c +++ b/src/vnet/devices/netlink.c @@ -20,8 +20,13 @@ #include <fcntl.h> #include <net/if.h> +#ifdef __linux__ #include <linux/netlink.h> #include <linux/rtnetlink.h> +#elif __FreeBSD__ +#include <netlink/netlink.h> +#include <netlink/netlink_route.h> +#endif #include <vlib/vlib.h> #include <vlib/unix/unix.h> |