From c2e1328f29f4c81459692eec48edadaa473e642a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 27 Dec 2008 01:49:58 +0000 Subject: added empty tun.c and h --- src/Makefile | 7 ++++++- src/configure | 8 ++++---- src/linux/tun.c | 35 +++++++++++++++++++++++++++++++++++ src/tun.h | 40 ++++++++++++++++++++++++++++++++++++++++ src/uanytun.c | 2 ++ 5 files changed, 87 insertions(+), 5 deletions(-) create mode 100644 src/linux/tun.c create mode 100644 src/tun.h diff --git a/src/Makefile b/src/Makefile index cd374f4..977cec6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,6 +47,7 @@ endif OBJS = log.o \ signal.o \ + tun.o \ uanytun.o EXECUTABLE = uanytun @@ -65,9 +66,13 @@ log.o: log.c log.h signal.o: signal.c signal.h $(CC) $(CCFLAGS) $< -c +tun.o: tun.c tun.h + $(CC) $(CCFLAGS) $< -c + distclean: clean find . -name *.o -exec rm -f {} \; - rm -f tunDevice.c + find . -name "*.\~*" -exec rm -rf {} \; + rm -f tun.c clean: rm -f *.o diff --git a/src/configure b/src/configure index f487593..e17d6e3 100755 --- a/src/configure +++ b/src/configure @@ -37,12 +37,12 @@ TARGET=`uname -s` case $TARGET in Linux) - rm -rf tunDevice.c - ln -sf linux/tunDevice.c + rm -rf tun.c + ln -sf linux/tun.c ;; OpenBSD|FreeBSD|NetBSD) - rm -rf tunDevice.c - ln -sf bsd/tunDevice.c + rm -rf tun.c + ln -sf bsd/tun.c ;; *) echo "Plattform not supported" diff --git a/src/linux/tun.c b/src/linux/tun.c new file mode 100644 index 0000000..971f344 --- /dev/null +++ b/src/linux/tun.c @@ -0,0 +1,35 @@ +/* + * ľAnytun + * + * ľAnytun is a tiny implementation of SATP. Unlike Anytun which is a full + * featured implementation ľAnytun has no support for multiple connections + * or synchronisation. It is a small single threaded implementation intended + * to act as a client on small platforms. + * The secure anycast tunneling protocol (satp) defines a protocol used + * for communication between any combination of unicast and anycast + * tunnel endpoints. It has less protocol overhead than IPSec in Tunnel + * mode and allows tunneling of every ETHER TYPE protocol (e.g. + * ethernet, ip, arp ...). satp directly includes cryptography and + * message authentication based on the methodes used by SRTP. It is + * intended to deliver a generic, scaleable and secure solution for + * tunneling and relaying of packets of any protocol. + * + * + * Copyright (C) 2007-2008 Christian Pointner + * + * This file is part of ľAnytun. + * + * ľAnytun is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * ľAnytun is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ľAnytun. If not, see . + */ + +#include "tun.h" diff --git a/src/tun.h b/src/tun.h new file mode 100644 index 0000000..24bde6a --- /dev/null +++ b/src/tun.h @@ -0,0 +1,40 @@ +/* + * ľAnytun + * + * ľAnytun is a tiny implementation of SATP. Unlike Anytun which is a full + * featured implementation ľAnytun has no support for multiple connections + * or synchronisation. It is a small single threaded implementation intended + * to act as a client on small platforms. + * The secure anycast tunneling protocol (satp) defines a protocol used + * for communication between any combination of unicast and anycast + * tunnel endpoints. It has less protocol overhead than IPSec in Tunnel + * mode and allows tunneling of every ETHER TYPE protocol (e.g. + * ethernet, ip, arp ...). satp directly includes cryptography and + * message authentication based on the methodes used by SRTP. It is + * intended to deliver a generic, scaleable and secure solution for + * tunneling and relaying of packets of any protocol. + * + * + * Copyright (C) 2007-2008 Christian Pointner + * + * This file is part of ľAnytun. + * + * ľAnytun is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * ľAnytun is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ľAnytun. If not, see . + */ + +#ifndef _TUN_H_ +#define _TUN_H_ + + + +#endif diff --git a/src/uanytun.c b/src/uanytun.c index 76aca3e..162ad5d 100644 --- a/src/uanytun.c +++ b/src/uanytun.c @@ -39,6 +39,8 @@ #include "daemon.h" #include "signal.h" +#include "tun.h" + int main(int argc, char* argv[]) { log_init("uanytun", DAEMON); -- cgit v1.2.3