aboutsummaryrefslogtreecommitdiffstats
path: root/cbits/tun.h
blob: e0256cc27e3c1f9d25df18845063a299f04cf66c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#ifndef _WG_TUN_
#define _WG_TUN_

#include <string.h>

int tun_alloc(const char *dev_name, int threads, int *fds);

int utun_read(int fd, void *buf, size_t len);
int utun_write(int fd, void *buf, size_t len);

#endif // _WG_TUN_