Add tun.[ch]

This commit is contained in:
angt
2015-11-16 15:44:16 +01:00
parent 14c0c2edb1
commit a8ebefbef3
4 changed files with 214 additions and 181 deletions

7
src/tun.h Normal file
View File

@@ -0,0 +1,7 @@
#pragma once
#include <unistd.h>
int tun_create (char *, int);
ssize_t tun_read (int, void *, size_t);
ssize_t tun_write (int, const void *, size_t);