Guus Sliepen
6bc5d626a8
Drop libevent and use our own event handling again.
...
There are several reasons for this:
- MacOS/X doesn't support polling the tap device using kqueue, requiring a
workaround to fall back to select().
- On Windows only sockets are properly handled, therefore tinc uses a second
thread that does a blocking ReadFile() on the TAP-Win32/64 device. However,
this does not mix well with libevent.
- Libevent, event just the core, is quite large, and although it is easy to get
and install on many platforms, it can be a burden.
- Libev is more lightweight and seems technically superior, but it doesn't
abstract away all the platform differences (for example, async events are not
supported on Windows).
2012-11-29 12:28:23 +01:00
Guus Sliepen
bb3d7f3b31
Fix configure script help text for --enable options.
2012-11-11 19:01:28 +01:00
Guus Sliepen
0db9e471ea
Releasing 1.1pre3.
2012-10-14 19:50:37 +02:00
Guus Sliepen
73348be58e
Have tincctl act as a shell when no command is given.
...
By default it uses readline to read commands. If the input and output are not a
tty, no prompt is shown.
2012-08-02 17:24:42 +02:00
Guus Sliepen
1d9dacb1f2
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
...
Conflicts:
src/logger.c
src/net_setup.c
2012-03-26 19:06:39 +01:00
Anthony G. Basile
16e6769fee
configure.in: fix AC_ARG_ENABLE and AC_ARG_WITH
...
The current configure.in file does not correctly make use of these
macros. The resulting configure file will therefore enable an item
even if --disable-FEATURE is given. This patch restores the intended
behavior.
2012-03-26 13:25:05 +02:00
Guus Sliepen
482c6119a7
Releasing 1.0.18.
2012-03-25 15:32:26 +01:00
Guus Sliepen
28a1501b9a
Releasing 1.0.17.
2012-03-10 13:45:53 +01:00
Guus Sliepen
3fba80174d
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
...
Conflicts:
NEWS
README
configure.in
doc/tincd.8.in
src/Makefile.am
src/bsd/device.c
src/connection.c
src/connection.h
src/cygwin/device.c
src/device.h
src/dropin.h
src/linux/device.c
src/mingw/device.c
src/net.c
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/process.c
src/protocol.c
src/protocol_key.c
src/raw_socket_device.c
src/route.c
src/solaris/device.c
src/tincd.c
src/uml_device.c
2012-02-22 14:23:59 +01:00
Guus Sliepen
6289859ab3
Only compile raw socket code when it is supported on that platform.
2012-02-20 15:44:52 +01:00
Guus Sliepen
178e52f76e
Allow linking with multiple device drivers.
...
Apart from the platform specific tun/tap driver, link with the dummy and
raw_socket devices, and optionally with support for UML and VDE devices.
At runtime, the DeviceType option can be used to select which driver to
use.
2011-12-04 01:20:59 +01:00
Guus Sliepen
0f2aa4bd8b
Releasing 1.0.16.
2011-07-23 14:12:23 +02:00
Guus Sliepen
f8d94f34fc
Releasing 1.1pre2.
2011-07-17 20:09:08 +02:00
Guus Sliepen
c108c79a22
Don't use wildcards in filenames in configure.in.
2011-07-11 22:14:06 +02:00
Guus Sliepen
bbeab00f46
Require ExperimentalProtocol = yes for new features, update documentation.
2011-07-11 21:54:01 +02:00
Guus Sliepen
810766e139
Add +git to the version string.
2011-06-25 21:38:59 +02:00
Guus Sliepen
386c1aff08
Merge Tinc.py into tinc-gui to simplify make install.
...
Autoconf/automake's Python support is strange.
2011-06-25 17:39:02 +02:00
Guus Sliepen
e4f65db897
Releasing 1.1pre1.
2011-06-25 15:28:54 +02:00
Guus Sliepen
47393b5de4
Add Makefile.am in gui/.
...
This ensures the gui source will be included in the tarball with make dist,
and will be installed with make install.
2011-06-25 00:35:58 +02:00
Guus Sliepen
05260f941c
Releasing 1.0.15.
2011-06-24 14:50:20 +02:00
Guus Sliepen
fb5b260190
No need to check for pselect() in tinc 1.1.
2011-06-21 23:08:05 +02:00
Guus Sliepen
33f241d978
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
...
Conflicts:
NEWS
configure.in
doc/tincd.8.in
lib/pidfile.c
lib/pidfile.h
lib/xalloc.h
lib/xmalloc.c
src/conf.c
src/conf.h
src/connection.c
src/connection.h
src/event.c
src/graph.c
src/graph.h
src/net.c
src/net.h
src/node.h
src/openssl/crypto.c
src/process.c
src/protocol.c
src/protocol_key.c
src/route.c
2011-06-06 20:42:15 +02:00
Guus Sliepen
4b3fd94b1c
Improved --logfile option.
...
Instead of UNIX time, the log messages now start with the time in RFC3339
format, which human-readable and still easy for the computer to parse and sort.
The HUP signal will also cause the log file to be closed and reopened, which is
useful when log rotation is used. If there is an error while opening the log
file, this is logged to stderr.
2011-06-06 16:26:11 +02:00
Loïc Grenié
50af33d01f
Nearly tickless tinc.
...
Use pselect instead of select in main_loop (if available). This lets
tincd sleeps as long as there is nothing to do.
2011-06-04 11:19:46 +02:00
Guus Sliepen
b7754e5aaa
Drop the GNU memcmp.c implementation.
2011-06-02 17:53:35 +02:00
Guus Sliepen
25b467638a
Drop the GNU malloc.c, realloc.c, and xmalloc.c.
...
We live in the 21st century, and we require C99 semantics, so we do not need to
work around buggy libcs. The xmalloc() and related functions are now static
inline functions.
2011-06-02 17:45:06 +02:00
Guus Sliepen
07ffb1a198
Make return value of SetPriorityClass() behave the same as setpriority().
2011-05-22 15:56:04 +02:00
Guus Sliepen
ec495b2f15
Add an autoconf check for the curses library.
2011-05-15 12:06:21 +02:00
Guus Sliepen
03b7118139
Reorder checks for libraries to allow ./configure LDFLAGS=-static.
...
OpenSSL depends on libdl and libz. When linking dynamically, libcrypto will
automatically link with the other two libraries. However, when linking
statically, these libraries need to be specified explicitly while linking. By
moving the autoconf checks for libdl and libz before those for libcrypto, we
ensure the latter test will be done with the proper libraries.
2011-05-13 12:37:26 +02:00
Guus Sliepen
ce8775000a
Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
...
Conflicts:
NEWS
README
configure.in
doc/tincd.8.in
lib/pidfile.c
src/bsd/device.c
src/dropin.h
src/net.c
src/net_packet.c
src/node.c
src/process.c
src/tincd.c
2011-05-09 21:35:14 +02:00
Guus Sliepen
5686ad80b5
Releasing 1.0.14.
2011-05-08 23:17:46 +02:00
Guus Sliepen
dc887f5011
Ensure proper linking with OpenSSL with recent versions of MinGW.
2011-05-08 23:12:06 +02:00
Rumko
046d83bf91
DragonFlyBSD support
...
* added DragonFly BSD support
* added a check for sys/resource.h (needed on DragonFly)
2011-02-12 18:22:14 +01:00
Guus Sliepen
b3731c0409
Proper check and dropin replacement for usleep().
2011-01-12 20:57:14 +01:00
Guus Sliepen
8b70c5be9b
Remove obsolete lib/ directory.
2010-04-30 23:18:22 +02:00
Guus Sliepen
4766359e14
Fix reading configuration files that do not end with a newline. Again.
2010-04-17 12:01:38 +02:00
Guus Sliepen
26b8cf8680
Releasing 1.0.13.
2010-04-11 20:40:20 +02:00
Sven-Haegar Koch
c6d2b9d734
Add missing AC_CHECK_HEADERS([dirent.h]) to configure.in
2010-03-31 05:06:21 +02:00
Guus Sliepen
d47ab576a2
Check for dirent.h.
2010-03-01 23:44:46 +01:00
Guus Sliepen
f7b2a2ea43
Releasing 1.0.12.
2010-02-03 22:49:48 +01:00
Guus Sliepen
075264a9e1
Make sure the 1.1 branch compiles in a MinGW environment.
...
UNIX domain sockets, of course, don't exist on Windows. For now, when compiling
tinc in a MinGW environment, try to use a TCP socket bound to localhost as an
alternative.
2009-11-05 23:29:28 +01:00
Guus Sliepen
44834d0304
Releasing 1.0.11.
2009-11-01 16:24:39 +01:00
Guus Sliepen
3a925479c2
Starting to work towards 1.0.11.
2009-10-20 22:22:59 +02:00
Guus Sliepen
8c267d3d55
Releasing 1.0.10.
2009-10-18 16:45:13 +02:00
Guus Sliepen
7ea85043ac
Merge branch 'master' into 1.1
...
Conflicts:
NEWS
configure.in
lib/Makefile.am
lib/pidfile.c
lib/pidfile.h
lib/utils.c
po/POTFILES.in
po/nl.po
src/Makefile.am
src/bsd/device.c
src/conf.c
src/connection.c
src/cygwin/device.c
src/edge.c
src/event.c
src/graph.c
src/linux/device.c
src/meta.c
src/mingw/device.c
src/net.c
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/netutl.c
src/node.c
src/process.c
src/protocol.c
src/protocol_auth.c
src/protocol_edge.c
src/protocol_key.c
src/protocol_misc.c
src/protocol_subnet.c
src/raw_socket/device.c
src/route.c
src/solaris/device.c
src/subnet.c
src/tincd.c
src/uml_socket/device.c
2009-09-29 14:55:29 +02:00
Guus Sliepen
4c85542894
Drop support for localisation.
...
Localised messages don't make much sense for a daemon, and there is only the
Dutch translation which costs time to maintain.
2009-09-25 00:54:07 +02:00
Guus Sliepen
a227843b73
Remove checkpoint tracing.
...
This feature is not necessary anymore since we have tools like valgrind today
that can catch stack overflow errors before they make a backtrace in gdb
impossible.
2009-09-25 00:33:04 +02:00
Guus Sliepen
c217d214f4
Remove all occurences of $Id$.
2009-09-24 23:39:16 +02:00
Guus Sliepen
f1fec466e2
Add a better autoconf check for libevent.
2009-09-16 23:43:19 +02:00
Guus Sliepen
075e6828a7
Merge branch 'master' into 1.1
...
Conflicts:
have.h
lib/dropin.c
lib/fake-getaddrinfo.c
lib/pidfile.c
src/Makefile.am
src/bsd/device.c
src/conf.c
src/connection.c
src/connection.h
src/graph.c
src/mingw/device.c
src/net.c
src/net_setup.c
src/node.c
src/protocol_key.c
src/protocol_misc.c
src/tincd.c
2009-09-16 19:55:47 +02:00