diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-09-27 21:56:07 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-12-04 23:40:53 +0100 |
commit | 6101734868cfab7d629a5c8d7f81c2441ce210d8 (patch) | |
tree | 55881e63bce8eaf64ce1dcd113809d57b1f9a452 /sysdep/unix/wg_user.h | |
parent | d70ef516c3c9b9ec3808ac2a3442d9eabc6d0caf (diff) |
Wg-user: Add wireguard unix socket implementation
Unix socket implementation for wireguard-go.
Use abstract unix sockets on Android
Diffstat (limited to 'sysdep/unix/wg_user.h')
-rw-r--r-- | sysdep/unix/wg_user.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdep/unix/wg_user.h b/sysdep/unix/wg_user.h new file mode 100644 index 00000000..5bd9a41a --- /dev/null +++ b/sysdep/unix/wg_user.h @@ -0,0 +1,16 @@ +#ifndef _BIRD_WG_USER_H +#define _BIRD_WG_USER_H + +#include "sysdep/config.h" + +#ifndef SOCKET_PATH +#define SOCKET_PATH PATH_RUNSTATEDIR "/wireguard/" +#endif /* SOCKET_PATH */ + +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 */ |