From aa74a4fd24d8e8537f76531e6257fa90145355d3 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 17 Feb 2010 03:03:11 +0100 Subject: [PATCH] Imported Upstream version 0.3.3 --- ChangeLog | 8 + README | 5 +- doc/Makefile | 7 +- doc/uanytun.8 | 420 +++++++++++++++++++++++++++++++++++++++++++++++++ doc/uanytun.8.txt | 103 ++++++------ etc/init.d/uanytun | 54 +++---- src/Makefile | 3 +- src/auth_algo.c | 2 +- src/auth_algo.h | 2 +- src/bsd/tun.c | 6 +- src/cipher.c | 2 +- src/cipher.h | 2 +- src/configure | 55 ++++--- src/daemon.h | 4 +- src/datatypes.h | 2 +- src/encrypted_packet.c | 2 +- src/encrypted_packet.h | 2 +- src/init_crypt.h | 93 +++++++++++ src/key_derivation.c | 2 +- src/key_derivation.h | 2 +- src/linux/tun.c | 2 +- src/log.c | 2 +- src/log.h | 2 +- src/log_targets.h | 2 +- src/options.c | 31 +++- src/options.h | 3 +- src/plain_packet.c | 2 +- src/plain_packet.h | 2 +- src/seq_window.c | 2 +- src/seq_window.h | 2 +- src/sig_handler.c | 9 +- src/sig_handler.h | 2 +- src/string_list.c | 2 +- src/string_list.h | 2 +- src/sysexec.c | 2 +- src/sysexec.h | 2 +- src/tun.h | 2 +- src/tun_helper.h | 2 +- src/uanytun.c | 127 ++++++--------- src/udp.c | 182 ++++++++++++++------- src/udp.h | 26 +-- version | 2 +- 42 files changed, 888 insertions(+), 298 deletions(-) create mode 100644 doc/uanytun.8 create mode 100644 src/init_crypt.h diff --git a/ChangeLog b/ChangeLog index edeb953..33d4752 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010.02.16 -- Version 0.3.3 + +* added -v|--version option +* added prebuilt manpage to release tarball (less build deps) +* added multi socket support which allows simultanous usage + of IPv4 and IPv6 even on operating systems without V4_MAPPED + address support + 2009.12.02 -- Version 0.3.2 * clenaups and improvements at configure and install target of Makefile diff --git a/README b/README index 00a88bc..1c70648 100644 --- a/README +++ b/README @@ -8,6 +8,7 @@ issues when using this library. It also needs more space when installed. Linux ----- +(this includes Debian with FreeBSD Kernel) using libgcrypt: @@ -19,7 +20,7 @@ using ssl crypto library: build-essential libssl-dev -only for manpage: +if you want to rebuild the manpage: asciidoc @@ -36,7 +37,7 @@ using ssl crypto library: devel/gmake -only for manpage: +if you want to rebuild the manpage: textproc/asciidoc textproc/libxslt diff --git a/doc/Makefile b/doc/Makefile index 97db23e..b5eecb8 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -15,7 +15,7 @@ ## tunneling and relaying of packets of any protocol. ## ## -## Copyright (C) 2007-2008 Christian Pointner +## Copyright (C) 2007-2010 Christian Pointner ## ## This file is part of uAnytun. ## @@ -49,4 +49,7 @@ uanytun.8: uanytun.8.txt manpage: uanytun.8 clean: - rm -f uanytun.8 uanytun.8.xml + rm -f uanytun.8.xml + +realclean: clean + rm -f uanytun.8 diff --git a/doc/uanytun.8 b/doc/uanytun.8 new file mode 100644 index 0000000..7126c00 --- /dev/null +++ b/doc/uanytun.8 @@ -0,0 +1,420 @@ +'\" t +.\" Title: uanytun +.\" Author: [see the "AUTHORS" section] +.\" Generator: DocBook XSL Stylesheets v1.75.1 +.\" Date: 02/17/2010 +.\" Manual: uanytun user manual +.\" Source: uanytun 0.3.3 +.\" Language: English +.\" +.TH "UANYTUN" "8" "02/17/2010" "uanytun 0.3.3" "uanytun user manual" +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +uanytun \- micro anycast tunneling daemon +.SH "SYNOPSIS" +.sp +.nf +\fBuanytun\fR + [ \fB\-h|\-\-help\fR ] + [ \fB\-D|\-\-nodaemonize\fR ] + [ \fB\-u|\-\-username\fR ] + [ \fB\-g|\-\-groupname\fR ] + [ \fB\-C|\-\-chroot\fR ] + [ \fB\-P|\-\-write\-pid\fR ] + [ \fB\-L|\-\-log\fR :[,[,[\&.\&.]]] ] + [ \fB\-U|\-\-debug\fR ] + [ \fB\-i|\-\-interface\fR ] + [ \fB\-p|\-\-port\fR ] + [ \fB\-r|\-\-remote\-host\fR ] + [ \fB\-o|\-\-remote\-port\fR ] + [ \fB\-4|\-\-ipv4\-only\fR ] + [ \fB\-6|\-\-ipv6\-only\fR ] + [ \fB\-d|\-\-dev\fR ] + [ \fB\-t|\-\-type\fR ] + [ \fB\-n|\-\-ifconfig\fR / ] + [ \fB\-x|\-\-post\-up\-script\fR