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
108b238915
Merge branch 'master' into 1.1
...
Conflicts:
NEWS
README
configure.in
doc/tinc.texi
doc/tincd.8.in
src/Makefile.am
src/connection.c
src/edge.c
src/meta.c
src/net.c
src/net.h
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/node.c
src/openssl/rsagen.h
src/protocol_auth.c
src/protocol_edge.c
src/subnet.c
2009-11-02 14:24:27 +01:00
Guus Sliepen
e00b44cb98
Move socket error interpretation to utils.h.
2009-10-25 01:40:07 +02:00
Guus Sliepen
87364c1656
Include missing header.
2009-10-18 14:22:20 +02:00
Borg
430c90412c
Removed last gettext function.
2009-10-03 13:06:00 +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
5dde6461a3
K&R style braces.
...
This is essentially commit f02d3ed3e1
from the
1.1 branch, making it easier to merge between master and 1.1.
2009-09-25 00:14:03 +02:00
Guus Sliepen
ab7c61b06f
Update the address of the Free Software Foundation in all copyright headers.
2009-09-25 00:01:00 +02:00
Guus Sliepen
0e6856b137
Remove Ivo's old email addresses.
2009-09-24 23:42:30 +02:00
Guus Sliepen
c217d214f4
Remove all occurences of $Id$.
2009-09-24 23:39:16 +02:00
Guus Sliepen
c23fcf555e
Update copyright information.
...
- Update year numbers in copyright headers.
- Add copyright information for Michael Tokarev and Florian Forster to the
copyright headers of files to which they have contributed significantly.
- Mention Michael and Florian in AUTHORS.
- Mention that tinc is GPLv3 or later if compiled with the --enable-tunemu
flag.
2009-09-24 23:29:46 +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
Guus Sliepen
802a50ffcd
Remove extra {.
2009-09-15 22:58:16 +02:00
Guus Sliepen
6f1e0ece4e
Remove dropin random() function, as it is not used anymore.
2009-09-15 00:28:20 +02:00
Guus Sliepen
fa9bedd47c
Allow compiling for Windows XP and higher.
...
This allows us to use getaddrinfo(), getnameinfo() and related functions, which
allow tinc to make connections over existing IPv6 networks. These functions are
not available on Windows 2000 however. By default, support is enabled, but when
compiling for Windows 2000 the configure switch --with-windows2000 should be
used.
Since getaddrinfo() et al. are not functions but macros on Windows, we have to
use AC_CHECK_DECLS() instead of AC_CHECK_FUNCS() in configure.in.
2009-09-15 00:24:31 +02:00
Guus Sliepen
81afa26e4a
Convert bitfields to integers in a safe way.
...
This is commit eb391c52ee
redone, but without the
non-standard anonymous union.
2009-09-09 12:04:08 +02:00
Guus Sliepen
3e55dc77f4
Check the return value of fscanf() when reading a PID file.
2009-09-08 18:18:16 +02:00
Guus Sliepen
5e0efd53e7
Add xasprintf() and xvasprintf().
...
These functions wrap asprintf() and vasprintf(), and check the return value. If
the function failed, tinc will exit with an error message, similar to xmalloc()
and friends.
2009-09-08 18:16:58 +02:00
Guus Sliepen
5a132550de
Merge branch 'master' into 1.1
...
Conflicts:
doc/tincd.8.in
lib/pidfile.c
src/graph.c
src/net.c
src/net.h
src/net_packet.c
src/net_setup.c
src/net_socket.c
src/netutl.c
src/node.c
src/node.h
src/protocol_auth.c
src/protocol_key.c
src/tincd.c
2009-06-05 23:14:13 +02:00
Guus Sliepen
a5fb0d8c6c
Add some const where appropriate.
2009-05-28 23:18:22 +02:00
Michael Tokarev
cdf7f13c31
bugfix: initialize pid (as read from pidfile) to zero
...
If we didn't read any number from a pid file, we'll return
an unitialized variable to the caller, and it will treat
that garbage as a pid of a process (possible to kill).
Fix that.
2009-05-18 14:34:24 +02:00
Guus Sliepen
bf8e3ce13d
Remove pidfile in favour of control socket.
2007-05-19 14:13:21 +00:00
Guus Sliepen
fb0cfccf7d
Use splay trees instead of AVL trees.
2007-05-18 10:05:26 +00:00
Guus Sliepen
f02d3ed3e1
K&R style braces
2007-05-18 10:00:00 +00:00
Guus Sliepen
ab6f76f6a9
Close the proper filedescriptor (if it exists).
2007-02-14 09:32:16 +00:00
Guus Sliepen
45fca3c723
Apply patch from Scott Lamb fixing some memory and resource leaks.
2007-02-14 09:21:34 +00:00
Guus Sliepen
b32c22cf54
Prevent compiler warnings about redefinition of EAI_FAMILY on FreeBSD 6.1.
2006-12-18 11:41:53 +00:00
Guus Sliepen
b55813dc0b
We do properly check for malloc and realloc.
2006-12-16 16:34:04 +00:00
Guus Sliepen
3353ab37c2
When deleting an entire tree, start at head, not at root.
2006-11-11 22:45:45 +00:00
Guus Sliepen
de78d79db8
Update copyright notices, remove Ivo's email address.
2006-04-26 13:52:58 +00:00
Guus Sliepen
df3220a154
Update copyright notices.
2005-05-04 18:09:30 +00:00
Guus Sliepen
bded1b74cc
Several splay tree fixes.
2005-05-04 15:56:25 +00:00
Guus Sliepen
f08baa3072
Fix splay tree code.
2004-11-18 20:34:48 +00:00
Guus Sliepen
5bba3124c8
Support tunneling IPv6 on Solaris.
2004-11-10 21:14:08 +00:00
Guus Sliepen
719cb95ea4
Splay trees.
2004-11-02 20:50:53 +00:00
Guus Sliepen
7926a156e5
Update copyrights, links, email addresses and let Subversion update $Id$ keywords.
2004-03-21 14:21:22 +00:00
Guus Sliepen
4350704d65
Remove CVS related cruft.
2004-03-15 17:54:19 +00:00
Guus Sliepen
2c7ce7de12
Missing definitions.
2003-12-22 11:05:23 +00:00
Guus Sliepen
507a83c746
Add missing definitions.
2003-11-08 15:09:03 +00:00
Guus Sliepen
1d7706a850
Update missing definitions, structs describing headers get __packed__ attribute.
2003-10-08 11:34:55 +00:00
Guus Sliepen
5b556c0971
Forgot to #include "xalloc.h"
2003-10-08 11:33:54 +00:00
Guus Sliepen
5900c07fab
PIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.
2003-10-06 16:13:08 +00:00
Guus Sliepen
77cb10dac0
Ethernet protocol types.
2003-10-06 14:16:51 +00:00
Guus Sliepen
6c5f3d8b74
We don't have to tell GCC how to cast.
2003-08-28 21:05:11 +00:00
Guus Sliepen
107448698f
Compilation fix.
2003-08-17 12:03:40 +00:00
Guus Sliepen
2236e05e51
Fix fake getnameinfo() and check more arguments.
2003-08-17 08:32:39 +00:00
Guus Sliepen
03995ca52e
Simplify fake getname/addrinfo() functions, possibly fixing freeing a NULL pointer.
2003-08-16 12:10:28 +00:00
Guus Sliepen
96f5d98fc2
Small things.
2003-08-08 19:56:11 +00:00