summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-27 01:49:58 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-27 01:49:58 +0000
commitc2e1328f29f4c81459692eec48edadaa473e642a (patch)
treec31e308bfcfaa9cb032d8ae7757806ee9dc9dda1
parentinitial checkin (diff)
added empty tun.c and h
-rw-r--r--src/Makefile7
-rwxr-xr-xsrc/configure8
-rw-r--r--src/linux/tun.c35
-rw-r--r--src/tun.h40
-rw-r--r--src/uanytun.c2
5 files changed, 87 insertions, 5 deletions
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 <equinox@anytun.org>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#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 <equinox@anytun.org>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#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);