From 7b2ae7aa2f52fbac65874a641cbfbb0182d0ba46 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 28 Oct 2022 20:45:05 -0500 Subject: ipc: freebsd: move if_wg path to reflect new in-tree location When we re-added if_wg to the tree, we changed directories in dev to strip the if_ (we don't use this prefix for other interfaces' directories). Adjust it here as a convenience, so that when we import wireguard-tools to FreeBSD the path will just work as-is with our usual build. Signed-off-by: Kyle Evans Signed-off-by: Jason A. Donenfeld --- src/uapi/freebsd/dev/wg/if_wg.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/uapi/freebsd/dev/wg/if_wg.h (limited to 'src/uapi/freebsd/dev/wg/if_wg.h') diff --git a/src/uapi/freebsd/dev/wg/if_wg.h b/src/uapi/freebsd/dev/wg/if_wg.h new file mode 100644 index 0000000..a4b3b13 --- /dev/null +++ b/src/uapi/freebsd/dev/wg/if_wg.h @@ -0,0 +1,16 @@ +#ifndef __IF_WG_H__ +#define __IF_WG_H__ + +#include +#include + +struct wg_data_io { + char wgd_name[IFNAMSIZ]; + void *wgd_data; + size_t wgd_size; +}; + +#define SIOCSWG _IOWR('i', 210, struct wg_data_io) +#define SIOCGWG _IOWR('i', 211, struct wg_data_io) + +#endif -- cgit v1.2.3-59-g8ed1b