From 6dde73086f934fe6c3f859fc6df7f93d13f2c5f8 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 27 Sep 2019 21:56:07 +0200 Subject: Wireguard: Refactor unix socket implementation Move unix socket implementation for wireguard-go to sysdep/unix/. --- sysdep/unix/wg_user.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 sysdep/unix/wg_user.h (limited to 'sysdep/unix/wg_user.h') diff --git a/sysdep/unix/wg_user.h b/sysdep/unix/wg_user.h new file mode 100644 index 00000000..a5e4251a --- /dev/null +++ b/sysdep/unix/wg_user.h @@ -0,0 +1,14 @@ +#ifndef _BIRD_WG_USER_H +#define _BIRD_WG_USER_H + +#include "sysdep/config.h" + +#define SOCKET_PATH PATH_RUNSTATEDIR "/wireguard/" + +struct pool; +struct wg_device; + +bool wg_has_userspace(const char *ifname); +int wg_user_set_device(struct pool *pool, const char *ifname, struct wg_device *dev); + +#endif /* _BIRD_WG_USER_H */ -- cgit v1.2.3