tinc
20 years agoUpdate missing definitions, structs describing headers get __packed__ attribute.
Guus Sliepen [Wed, 8 Oct 2003 11:34:55 +0000 (11:34 +0000)]
Update missing definitions, structs describing headers get __packed__ attribute.

20 years agoForgot to #include "xalloc.h"
Guus Sliepen [Wed, 8 Oct 2003 11:33:54 +0000 (11:33 +0000)]
Forgot to #include "xalloc.h"

20 years agoMake sure type of AF_UNKNOWN is sa_family_t.
Guus Sliepen [Mon, 6 Oct 2003 16:49:42 +0000 (16:49 +0000)]
Make sure type of AF_UNKNOWN is sa_family_t.

20 years agoPIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.
Guus Sliepen [Mon, 6 Oct 2003 16:13:08 +0000 (16:13 +0000)]
PIDs are of type pid_t, and use %ld when reading/writing them to the pidfile.

20 years agoUse CPPFLAGS, LDFLAGS and LIBS as appropiate.
Guus Sliepen [Mon, 6 Oct 2003 16:05:30 +0000 (16:05 +0000)]
Use CPPFLAGS, LDFLAGS and LIBS as appropiate.

20 years agoDon't confuse users with "Address family not supported" warnings.
Guus Sliepen [Mon, 6 Oct 2003 14:41:45 +0000 (14:41 +0000)]
Don't confuse users with "Address family not supported" warnings.

20 years agoUnused variable in struct.
Guus Sliepen [Mon, 6 Oct 2003 14:33:04 +0000 (14:33 +0000)]
Unused variable in struct.

20 years agoEthernet protocol types.
Guus Sliepen [Mon, 6 Oct 2003 14:16:51 +0000 (14:16 +0000)]
Ethernet protocol types.

20 years agoconst
Guus Sliepen [Mon, 6 Oct 2003 13:57:12 +0000 (13:57 +0000)]
const

20 years agoCopy structs from packets to the stack before using them, to prevent
Guus Sliepen [Mon, 6 Oct 2003 13:49:57 +0000 (13:49 +0000)]
Copy structs from packets to the stack before using them, to prevent
alignment issues.

20 years agoBetter length checks.
Guus Sliepen [Wed, 1 Oct 2003 09:14:01 +0000 (09:14 +0000)]
Better length checks.

20 years agoGenerate keys with 0x10001 as public exponent, which has less prime factors
Guus Sliepen [Thu, 25 Sep 2003 10:34:16 +0000 (10:34 +0000)]
Generate keys with 0x10001 as public exponent, which has less prime factors
than 0xFFFF.

20 years agoCheck for short packets from the tun/tap device and from other tinc daemons.
Guus Sliepen [Tue, 23 Sep 2003 20:59:01 +0000 (20:59 +0000)]
Check for short packets from the tun/tap device and from other tinc daemons.

20 years agoUpdate translations.
Guus Sliepen [Tue, 9 Sep 2003 15:47:59 +0000 (15:47 +0000)]
Update translations.

20 years agoRemove pidfile when exitting.
Guus Sliepen [Mon, 8 Sep 2003 21:52:47 +0000 (21:52 +0000)]
Remove pidfile when exitting.

20 years agoPrevent multiple inclusions.
Guus Sliepen [Wed, 3 Sep 2003 16:20:33 +0000 (16:20 +0000)]
Prevent multiple inclusions.

20 years agoWe don't have to tell GCC how to cast.
Guus Sliepen [Thu, 28 Aug 2003 21:05:11 +0000 (21:05 +0000)]
We don't have to tell GCC how to cast.

20 years agoRemove old edges from unreachable nodes to us. This prevents the hosts/NAME-up
Guus Sliepen [Thu, 28 Aug 2003 15:27:12 +0000 (15:27 +0000)]
Remove old edges from unreachable nodes to us. This prevents the hosts/NAME-up
script from being called twice in some situations.

20 years agoAdd license exception from Markus Oberhumer.
Guus Sliepen [Fri, 22 Aug 2003 21:32:45 +0000 (21:32 +0000)]
Add license exception from Markus Oberhumer.

20 years agoRemove debug message.
Guus Sliepen [Fri, 22 Aug 2003 15:07:57 +0000 (15:07 +0000)]
Remove debug message.

20 years agoWhen purging nodes, only delete them if nobody references them anymore.
Guus Sliepen [Fri, 22 Aug 2003 15:04:26 +0000 (15:04 +0000)]
When purging nodes, only delete them if nobody references them anymore.

20 years agoAdd checkpoints.
Guus Sliepen [Fri, 22 Aug 2003 15:03:59 +0000 (15:03 +0000)]
Add checkpoints.

20 years agoDon't overwrite the first " when installing a service.
Guus Sliepen [Fri, 22 Aug 2003 15:05:01 +0000 (15:05 +0000)]
Don't overwrite the first " when installing a service.

20 years agoAllow tinc to handle unknown type addresses from other tinc daemons.
Guus Sliepen [Fri, 22 Aug 2003 11:18:42 +0000 (11:18 +0000)]
Allow tinc to handle unknown type addresses from other tinc daemons.

20 years agoIf we're not in main_loop() and the service is stopped, exit immediately.
Guus Sliepen [Sun, 17 Aug 2003 12:05:08 +0000 (12:05 +0000)]
If we're not in main_loop() and the service is stopped, exit immediately.

20 years agoDo what the SDK documentation tells.
Guus Sliepen [Sun, 17 Aug 2003 12:04:35 +0000 (12:04 +0000)]
Do what the SDK documentation tells.

20 years agoCompilation fix.
Guus Sliepen [Sun, 17 Aug 2003 12:03:40 +0000 (12:03 +0000)]
Compilation fix.

20 years agoUse the event log under Windows.
Guus Sliepen [Sun, 17 Aug 2003 09:04:00 +0000 (09:04 +0000)]
Use the event log under Windows.

20 years agoFix --logfile under Windows.
Guus Sliepen [Sun, 17 Aug 2003 09:03:30 +0000 (09:03 +0000)]
Fix --logfile under Windows.

20 years agoFix fake getnameinfo() and check more arguments.
Guus Sliepen [Sun, 17 Aug 2003 08:32:39 +0000 (08:32 +0000)]
Fix fake getnameinfo() and check more arguments.

20 years agoDon't getsockopt() SO_ERROR. We get the error from send()/recv() anyway.
Guus Sliepen [Sat, 16 Aug 2003 12:40:01 +0000 (12:40 +0000)]
Don't getsockopt() SO_ERROR. We get the error from send()/recv() anyway.

20 years agostat() batch files under Windows.
Guus Sliepen [Sat, 16 Aug 2003 12:11:11 +0000 (12:11 +0000)]
stat() batch files under Windows.

20 years agoSimplify fake getname/addrinfo() functions, possibly fixing freeing a NULL pointer.
Guus Sliepen [Sat, 16 Aug 2003 12:10:28 +0000 (12:10 +0000)]
Simplify fake getname/addrinfo() functions, possibly fixing freeing a NULL pointer.

20 years agoUpdate. release-1.0.1
Guus Sliepen [Thu, 14 Aug 2003 14:32:34 +0000 (14:32 +0000)]
Update.

20 years agoFix permissions check for rsa_key.priv.
Guus Sliepen [Thu, 14 Aug 2003 14:21:35 +0000 (14:21 +0000)]
Fix permissions check for rsa_key.priv.

20 years agoSmall fixes.
Guus Sliepen [Tue, 12 Aug 2003 14:48:13 +0000 (14:48 +0000)]
Small fixes.

20 years agoUpdated dutch translation.
Guus Sliepen [Tue, 12 Aug 2003 12:35:53 +0000 (12:35 +0000)]
Updated dutch translation.

20 years agoAdd a description for the Service control panel.
Guus Sliepen [Sun, 10 Aug 2003 13:35:05 +0000 (13:35 +0000)]
Add a description for the Service control panel.

20 years agoUpdate documentation.
Guus Sliepen [Sat, 9 Aug 2003 00:53:22 +0000 (00:53 +0000)]
Update documentation.

20 years agoOnly system() needs script name quoted.
Guus Sliepen [Fri, 8 Aug 2003 22:45:46 +0000 (22:45 +0000)]
Only system() needs script name quoted.

20 years agoCheck for fchmod().
Guus Sliepen [Fri, 8 Aug 2003 22:13:50 +0000 (22:13 +0000)]
Check for fchmod().

20 years agoSimpler checking of permissions on private RSA key and other fixes.
Guus Sliepen [Fri, 8 Aug 2003 22:11:54 +0000 (22:11 +0000)]
Simpler checking of permissions on private RSA key and other fixes.

20 years agoSmall things.
Guus Sliepen [Fri, 8 Aug 2003 19:56:11 +0000 (19:56 +0000)]
Small things.

20 years agoBetter error checking and reporting.
Guus Sliepen [Fri, 8 Aug 2003 19:49:47 +0000 (19:49 +0000)]
Better error checking and reporting.

20 years agoUnder Windows, the installation directory can be found in the registry.
Guus Sliepen [Fri, 8 Aug 2003 19:45:21 +0000 (19:45 +0000)]
Under Windows, the installation directory can be found in the registry.

20 years agoQuote when needed and don't try stuff that doesn't work under Windows.
Guus Sliepen [Fri, 8 Aug 2003 19:43:47 +0000 (19:43 +0000)]
Quote when needed and don't try stuff that doesn't work under Windows.

20 years agoLog error first, try to close later.
Guus Sliepen [Fri, 8 Aug 2003 19:42:35 +0000 (19:42 +0000)]
Log error first, try to close later.

20 years agoBetter error messages under Windows.
Guus Sliepen [Fri, 8 Aug 2003 19:39:41 +0000 (19:39 +0000)]
Better error messages under Windows.

20 years agoTypo.
Guus Sliepen [Fri, 8 Aug 2003 17:20:12 +0000 (17:20 +0000)]
Typo.

20 years agoReadd quotes.
Guus Sliepen [Fri, 8 Aug 2003 17:17:13 +0000 (17:17 +0000)]
Readd quotes.

20 years agoMake rule for sample-config.tar.gz.
Guus Sliepen [Fri, 8 Aug 2003 16:49:29 +0000 (16:49 +0000)]
Make rule for sample-config.tar.gz.

20 years agoAllow empty lines in config files.
Guus Sliepen [Fri, 8 Aug 2003 14:59:27 +0000 (14:59 +0000)]
Allow empty lines in config files.

20 years agoSimplify execute_script(). It will probably work under Windows as well.
Guus Sliepen [Fri, 8 Aug 2003 14:48:33 +0000 (14:48 +0000)]
Simplify execute_script(). It will probably work under Windows as well.

20 years agoCorrect error message when remote host closed connection.
Guus Sliepen [Fri, 8 Aug 2003 14:24:09 +0000 (14:24 +0000)]
Correct error message when remote host closed connection.

20 years agoRemove unused stuff from doc/.
Guus Sliepen [Fri, 8 Aug 2003 14:07:12 +0000 (14:07 +0000)]
Remove unused stuff from doc/.
Let configure update pathnames in documentation.

20 years agoTell windows to be patient.
Guus Sliepen [Fri, 8 Aug 2003 12:55:05 +0000 (12:55 +0000)]
Tell windows to be patient.

20 years agoWindows uses backslashes...
Guus Sliepen [Fri, 8 Aug 2003 12:24:52 +0000 (12:24 +0000)]
Windows uses backslashes...

20 years agoSync CABAL branch with release-1_0 branch. release-1.0
Guus Sliepen [Fri, 8 Aug 2003 11:45:37 +0000 (11:45 +0000)]
Sync CABAL branch with release-1_0 branch.

20 years agoUse our own port when connecting to ourself.
Guus Sliepen [Sun, 3 Aug 2003 21:45:41 +0000 (21:45 +0000)]
Use our own port when connecting to ourself.

20 years agoSimplify translation
Guus Sliepen [Sun, 3 Aug 2003 21:45:13 +0000 (21:45 +0000)]
Simplify translation

20 years agoUpdate dutch translation
Guus Sliepen [Sun, 3 Aug 2003 21:43:19 +0000 (21:43 +0000)]
Update dutch translation

20 years agoRemove newlines from log messages.
Guus Sliepen [Sun, 3 Aug 2003 12:38:43 +0000 (12:38 +0000)]
Remove newlines from log messages.

20 years agoKeep Windows happy.
Guus Sliepen [Sun, 3 Aug 2003 12:38:18 +0000 (12:38 +0000)]
Keep Windows happy.

20 years agoCygwin needs windows.h.
Guus Sliepen [Sun, 3 Aug 2003 12:37:55 +0000 (12:37 +0000)]
Cygwin needs windows.h.

20 years agoOld gcc compilers don't like declarations in the middle of a function.
Guus Sliepen [Sun, 3 Aug 2003 09:55:20 +0000 (09:55 +0000)]
Old gcc compilers don't like declarations in the middle of a function.

20 years agoClean up last part of main().
Guus Sliepen [Sun, 3 Aug 2003 09:08:52 +0000 (09:08 +0000)]
Clean up last part of main().

20 years agoTypo and another thing to think about.
Guus Sliepen [Sat, 2 Aug 2003 22:01:50 +0000 (22:01 +0000)]
Typo and another thing to think about.

20 years agoExplain how tinc detaches and how it is "killed" under Windows.
Guus Sliepen [Sat, 2 Aug 2003 21:55:12 +0000 (21:55 +0000)]
Explain how tinc detaches and how it is "killed" under Windows.

20 years agoUpdated dutch translation.
Guus Sliepen [Sat, 2 Aug 2003 21:39:11 +0000 (21:39 +0000)]
Updated dutch translation.

20 years agoOops.
Guus Sliepen [Sat, 2 Aug 2003 21:34:10 +0000 (21:34 +0000)]
Oops.

20 years agoMissing include.
Guus Sliepen [Sat, 2 Aug 2003 21:33:52 +0000 (21:33 +0000)]
Missing include.

20 years agoCleanups and error messages.
Guus Sliepen [Sat, 2 Aug 2003 21:33:19 +0000 (21:33 +0000)]
Cleanups and error messages.

20 years agoError messages.
Guus Sliepen [Sat, 2 Aug 2003 21:01:50 +0000 (21:01 +0000)]
Error messages.

20 years agoInstall tinc as a service under Windows (MinGW). Remove cleanup_and_exit(),
Guus Sliepen [Sat, 2 Aug 2003 20:50:38 +0000 (20:50 +0000)]
Install tinc as a service under Windows (MinGW). Remove cleanup_and_exit(),
either exit() directly on errors or let main_loop() shutdown gracefully.

20 years agoWhen compiling with MinGW, link with ws2_32.
Guus Sliepen [Sat, 2 Aug 2003 16:05:33 +0000 (16:05 +0000)]
When compiling with MinGW, link with ws2_32.

20 years agoWindows has no symbolic links as we know it.
Guus Sliepen [Sat, 2 Aug 2003 15:32:57 +0000 (15:32 +0000)]
Windows has no symbolic links as we know it.

20 years agoOops.
Guus Sliepen [Sat, 2 Aug 2003 15:29:06 +0000 (15:29 +0000)]
Oops.

20 years agoAllow whitespace in values.
Guus Sliepen [Sat, 2 Aug 2003 15:27:24 +0000 (15:27 +0000)]
Allow whitespace in values.

20 years agoPrevent system headers from including our own headers.
Guus Sliepen [Sat, 2 Aug 2003 15:13:08 +0000 (15:13 +0000)]
Prevent system headers from including our own headers.

20 years agoWrong function...
Guus Sliepen [Fri, 1 Aug 2003 08:18:22 +0000 (08:18 +0000)]
Wrong function...

20 years agoWoops!
Guus Sliepen [Thu, 31 Jul 2003 14:24:19 +0000 (14:24 +0000)]
Woops!

20 years agoNo easy way to properly detect header files...
Guus Sliepen [Thu, 31 Jul 2003 13:18:34 +0000 (13:18 +0000)]
No easy way to properly detect header files...

20 years agoRemove forgotten braces.
Guus Sliepen [Thu, 31 Jul 2003 11:31:51 +0000 (11:31 +0000)]
Remove forgotten braces.

20 years agoWrong argument.
Guus Sliepen [Thu, 31 Jul 2003 11:20:32 +0000 (11:20 +0000)]
Wrong argument.

20 years agoCheck if the compiler knows about the __malloc__ attribute.
Guus Sliepen [Thu, 31 Jul 2003 11:17:39 +0000 (11:17 +0000)]
Check if the compiler knows about the __malloc__ attribute.

20 years agoPrevent definitions from messing up attributes.
Guus Sliepen [Wed, 30 Jul 2003 21:52:41 +0000 (21:52 +0000)]
Prevent definitions from messing up attributes.

20 years agoReplacement for stdbool.h
Guus Sliepen [Wed, 30 Jul 2003 16:00:59 +0000 (16:00 +0000)]
Replacement for stdbool.h

20 years agoNo C99 initialisers, gcc 2.95.3 doesn't like it.
Guus Sliepen [Wed, 30 Jul 2003 11:50:45 +0000 (11:50 +0000)]
No C99 initialisers, gcc 2.95.3 doesn't like it.
Also make sure getopt.h is included.

20 years agoRemove doc/es/ and src/device.c from the distribution.
Guus Sliepen [Wed, 30 Jul 2003 09:45:21 +0000 (09:45 +0000)]
Remove doc/es/ and src/device.c from the distribution.

20 years agoUpdate documentation and remove stuff that's too outdated.
Guus Sliepen [Wed, 30 Jul 2003 09:22:29 +0000 (09:22 +0000)]
Update documentation and remove stuff that's too outdated.

20 years agoCleanups.
Guus Sliepen [Tue, 29 Jul 2003 23:21:01 +0000 (23:21 +0000)]
Cleanups.

20 years agoNative Windows support.
Guus Sliepen [Tue, 29 Jul 2003 22:59:01 +0000 (22:59 +0000)]
Native Windows support.

20 years agoMake sure (at least) the MinGW device driver works.
Guus Sliepen [Tue, 29 Jul 2003 12:38:49 +0000 (12:38 +0000)]
Make sure (at least) the MinGW device driver works.

20 years agoMake sure it works.
Guus Sliepen [Tue, 29 Jul 2003 12:18:35 +0000 (12:18 +0000)]
Make sure it works.

20 years agoUpdate configure scripts.
Guus Sliepen [Tue, 29 Jul 2003 11:50:39 +0000 (11:50 +0000)]
Update configure scripts.

20 years agoUpdate dutch translation and make sure all device drivers are included in
Guus Sliepen [Tue, 29 Jul 2003 11:06:23 +0000 (11:06 +0000)]
Update dutch translation and make sure all device drivers are included in
the translation and distribution.

20 years agoFix compile errors and warnings.
Guus Sliepen [Tue, 29 Jul 2003 10:50:15 +0000 (10:50 +0000)]
Fix compile errors and warnings.

20 years agoMore checks for missing functions.
Guus Sliepen [Mon, 28 Jul 2003 22:06:09 +0000 (22:06 +0000)]
More checks for missing functions.

20 years agoMore generic handling of tap device under Windows.
Guus Sliepen [Mon, 28 Jul 2003 21:54:03 +0000 (21:54 +0000)]
More generic handling of tap device under Windows.

20 years agoSprinkle around a lot of const and some C99 initialisers.
Guus Sliepen [Thu, 24 Jul 2003 12:08:16 +0000 (12:08 +0000)]
Sprinkle around a lot of const and some C99 initialisers.