warp-vpn

point to point VPN implementation
git clone git://git.2f30.org/warp-vpn
Log | Files | Refs | README

commit 45d0f744cd44a92d51103064d3b3fae242b3c0a8
parent 28bce250d8affd3331b06fda9d52502e1893369e
Author: sin <sin@2f30.org>
Date:   Wed, 23 Mar 2016 23:27:17 +0000

add placeholder for linux tap until i fix the ifdef mess

Diffstat:
Mstun.c | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/stun.c b/stun.c @@ -184,6 +184,24 @@ int (*readdev)(int, unsigned char *, int); #if defined(__linux__) int +opentap(char *tapdev) +{ + logerr("linux tap support is not ready"); +} + +int +writetap(int fd, unsigned char *buf, int len) +{ + return write(fd, buf, len); +} + +int +readtap(int fd, unsigned char *buf, int len) +{ + return read(fd, buf, len); +} + +int opentun(char *tundev) { struct ifreq ifr;