aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/uapi/freebsd/dev/if_wg/if_wg.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-03-10 20:24:40 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2021-03-11 15:02:07 -0700
commitf51349c52b8d343f8e7d63015415516771b884dc (patch)
tree044ec51cd25b4eb9562294fbaf16ed1286b92a5d /src/uapi/freebsd/dev/if_wg/if_wg.h
parentwg-quick: freebsd: add kernel support (diff)
downloadwireguard-tools-f51349c52b8d343f8e7d63015415516771b884dc.tar.xz
wireguard-tools-f51349c52b8d343f8e7d63015415516771b884dc.zip
ipc: freebsd: add initial FreeBSD support
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--src/uapi/freebsd/dev/if_wg/if_wg.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/uapi/freebsd/dev/if_wg/if_wg.h b/src/uapi/freebsd/dev/if_wg/if_wg.h
new file mode 100644
index 0000000..a4b3b13
--- /dev/null
+++ b/src/uapi/freebsd/dev/if_wg/if_wg.h
@@ -0,0 +1,16 @@
+#ifndef __IF_WG_H__
+#define __IF_WG_H__
+
+#include <net/if.h>
+#include <netinet/in.h>
+
+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