summaryrefslogtreecommitdiff
path: root/sysdep/unix/wg_user.h
blob: dc15fdf2a8e508e8f77de297b41e6ea219ebd956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 */