tinc
23 years agoNew function: xmalloc_and_zero, which initialises the allocated memory
Ivo Timmermans [Thu, 16 Nov 2000 18:06:39 +0000 (18:06 +0000)]
New function: xmalloc_and_zero, which initialises the allocated memory
to all zeroes.

23 years agoMove all process-related functions into process.c.
Ivo Timmermans [Thu, 16 Nov 2000 17:54:29 +0000 (17:54 +0000)]
Move all process-related functions into process.c.

23 years ago- Added balanced tree management stuff as well. (It is not finished yet.)
Guus Sliepen [Thu, 16 Nov 2000 09:18:38 +0000 (09:18 +0000)]
- Added balanced tree management stuff as well. (It is not finished yet.)

23 years agoKeep a list of running children, and in each loop in main_loop(),
Ivo Timmermans [Wed, 15 Nov 2000 22:07:36 +0000 (22:07 +0000)]
Keep a list of running children, and in each loop in main_loop(),
check if one has exited.

23 years agoList management and manipulation routines.
Ivo Timmermans [Wed, 15 Nov 2000 22:04:48 +0000 (22:04 +0000)]
List management and manipulation routines.

23 years agoPorting to FreeBSD:
Guus Sliepen [Wed, 15 Nov 2000 13:33:27 +0000 (13:33 +0000)]
Porting to FreeBSD:
- Reorganized and added some #includes

23 years agoLet the output from an executed script in execute_script() go to
Ivo Timmermans [Wed, 15 Nov 2000 01:28:21 +0000 (01:28 +0000)]
Let the output from an executed script in execute_script() go to
syslog, with proper error detection.

23 years agoUse the HAVE_OPENSSL_xxx_H defined from m4/openssl.m4 during
Ivo Timmermans [Wed, 15 Nov 2000 01:06:13 +0000 (01:06 +0000)]
Use the HAVE_OPENSSL_xxx_H defined from m4/openssl.m4 during
configure.

23 years agoAlso check for sha.h.
Ivo Timmermans [Wed, 15 Nov 2000 01:02:30 +0000 (01:02 +0000)]
Also check for sha.h.

23 years agoAlso check for rand.h and err.h. If any of these files does not
Ivo Timmermans [Wed, 15 Nov 2000 00:57:26 +0000 (00:57 +0000)]
Also check for rand.h and err.h.  If any of these files does not
exist, try the next alternative path.

23 years agoGet rid of the annoying empty line
Ivo Timmermans [Tue, 14 Nov 2000 23:18:19 +0000 (23:18 +0000)]
Get rid of the annoying empty line

23 years agoOops, small error.
Ivo Timmermans [Tue, 14 Nov 2000 23:02:08 +0000 (23:02 +0000)]
Oops, small error.

23 years agoBetter checks for OpenSSL. I think it can now detect almost all conceivable installa...
Ivo Timmermans [Tue, 14 Nov 2000 22:57:19 +0000 (22:57 +0000)]
Better checks for OpenSSL.  I think it can now detect almost all conceivable installations.

23 years agoIdentify version as 1.0pre4-cvs
Ivo Timmermans [Mon, 13 Nov 2000 22:29:22 +0000 (22:29 +0000)]
Identify version as 1.0pre4-cvs

23 years agoAdd a check for openssl that accepts explicit file locations.
Ivo Timmermans [Mon, 13 Nov 2000 22:01:27 +0000 (22:01 +0000)]
Add a check for openssl that accepts explicit file locations.

23 years agoAdd prototype for destroy_queue release-1.0pre3
Ivo Timmermans [Thu, 9 Nov 2000 21:33:18 +0000 (21:33 +0000)]
Add prototype for destroy_queue

23 years agoUpdates, updates
Ivo Timmermans [Thu, 9 Nov 2000 21:29:58 +0000 (21:29 +0000)]
Updates, updates

23 years agoBop version number to 1.0pre3-1
Ivo Timmermans [Thu, 9 Nov 2000 20:59:35 +0000 (20:59 +0000)]
Bop version number to 1.0pre3-1

23 years agoWrapped text to 70 (72?) columns for easy reading
Ivo Timmermans [Thu, 9 Nov 2000 20:42:16 +0000 (20:42 +0000)]
Wrapped text to 70 (72?) columns for easy reading

23 years agoFinal release notes added, also edited release notes for 1.0pre2 to what the announce...
Ivo Timmermans [Thu, 9 Nov 2000 20:41:13 +0000 (20:41 +0000)]
Final release notes added, also edited release notes for 1.0pre2 to what the announcement on the mailing list looked like.

23 years ago- Make checkpoint tracing a compile time option (off by default)
Guus Sliepen [Wed, 8 Nov 2000 20:52:37 +0000 (20:52 +0000)]
- Make checkpoint tracing a compile time option (off by default)

23 years ago- Add Jamie :)
Guus Sliepen [Wed, 8 Nov 2000 18:05:06 +0000 (18:05 +0000)]
- Add Jamie :)

23 years ago- Applied Jamie Brigg's patch (close sockets after error)
Guus Sliepen [Wed, 8 Nov 2000 17:56:34 +0000 (17:56 +0000)]
- Applied Jamie Brigg's patch (close sockets after error)

23 years ago- Fixed --config
Guus Sliepen [Wed, 8 Nov 2000 00:20:06 +0000 (00:20 +0000)]
- Fixed --config
- Show warning when both netname and config directory are given.

23 years agoPorting to SunOS 5.8:
Guus Sliepen [Wed, 8 Nov 2000 00:10:50 +0000 (00:10 +0000)]
Porting to SunOS 5.8:
- More #includes Linux doesn't seem to need
- Don't do unsetenv() on SunOS
- Use a replacement asprintf() in case the OS doesn't support it
It now compiles properly under SunOS.

23 years agoPorting to SunOS 5.8:
Guus Sliepen [Tue, 7 Nov 2000 22:33:33 +0000 (22:33 +0000)]
Porting to SunOS 5.8:
- Include all header files necessary
- Check for flock() function

23 years ago- Open UDP connection for all known hosts. Comments please.
Guus Sliepen [Tue, 7 Nov 2000 22:02:14 +0000 (22:02 +0000)]
- Open UDP connection for all known hosts. Comments please.

23 years agoChanged execution of tinc-up:
Guus Sliepen [Tue, 7 Nov 2000 21:43:28 +0000 (21:43 +0000)]
Changed execution of tinc-up:
- Do not free() strings that have been putenv()d, see man page of the
  latter.
- Do not set IFNAME anymore, it appears that the ioctl to get the name of
  the interface does not work at all. Since it is set to NETNAME in case
  of tun/tap and it is known beforehand in case of ethertap, there is no
  need for it anyway... (though it would've simplified things).

24 years agoBuild-Depends on gettext
Ivo Timmermans [Sun, 5 Nov 2000 02:19:58 +0000 (02:19 +0000)]
Build-Depends on gettext

24 years ago- Prepended config_ to all configuration option names, because it confused
Guus Sliepen [Sat, 4 Nov 2000 22:57:33 +0000 (22:57 +0000)]
- Prepended config_ to all configuration option names, because it confused
  everything (including myself).
- Use connection oriented UDP sockets for both incoming and outgoing
  packets.

24 years ago- Simplified ping mechanism.
Guus Sliepen [Sat, 4 Nov 2000 20:44:28 +0000 (20:44 +0000)]
- Simplified ping mechanism.

24 years agoBuild-depends on libtool
Ivo Timmermans [Sat, 4 Nov 2000 17:29:45 +0000 (17:29 +0000)]
Build-depends on libtool

24 years ago- Check for packets that are looping back.
Guus Sliepen [Sat, 4 Nov 2000 17:09:10 +0000 (17:09 +0000)]
- Check for packets that are looping back.

24 years agoUpdated Dutch translation
Ivo Timmermans [Sat, 4 Nov 2000 17:04:17 +0000 (17:04 +0000)]
Updated Dutch translation

24 years agoAdd route.c to the list of source files.
Ivo Timmermans [Sat, 4 Nov 2000 17:01:55 +0000 (17:01 +0000)]
Add route.c to the list of source files.

24 years ago- Forward keys in hex notation, not as binary data.
Guus Sliepen [Sat, 4 Nov 2000 16:54:21 +0000 (16:54 +0000)]
- Forward keys in hex notation, not as binary data.

24 years ago- Don't forget to set packet cipher for added hosts.
Guus Sliepen [Sat, 4 Nov 2000 16:39:19 +0000 (16:39 +0000)]
- Don't forget to set packet cipher for added hosts.

24 years ago- connlist.c added to translation
Guus Sliepen [Sat, 4 Nov 2000 15:34:07 +0000 (15:34 +0000)]
- connlist.c added to translation

24 years agoIn execute_script:
Ivo Timmermans [Sat, 4 Nov 2000 15:32:05 +0000 (15:32 +0000)]
In execute_script:
- add an environment variable NETNAME.
- chdir to the configuration directory before execing the script.

24 years agoDo not include the passphrases directory
Ivo Timmermans [Sat, 4 Nov 2000 15:18:58 +0000 (15:18 +0000)]
Do not include the passphrases directory

24 years ago- Removed manpage for no longer existing genauth.
Guus Sliepen [Sat, 4 Nov 2000 15:17:02 +0000 (15:17 +0000)]
- Removed manpage for no longer existing genauth.

24 years ago- Resolve scriptname after fork()
Guus Sliepen [Sat, 4 Nov 2000 14:52:40 +0000 (14:52 +0000)]
- Resolve scriptname after fork()

24 years agoUse putenv() instead of clumsy do-it-yourself in execute_script.
Ivo Timmermans [Sat, 4 Nov 2000 14:16:46 +0000 (14:16 +0000)]
Use putenv() instead of clumsy do-it-yourself in execute_script.

24 years agoSmall change to the way the environment is copied.
Ivo Timmermans [Sat, 4 Nov 2000 13:25:15 +0000 (13:25 +0000)]
Small change to the way the environment is copied.

24 years ago- Removed even more warnings.
Guus Sliepen [Sat, 4 Nov 2000 11:49:58 +0000 (11:49 +0000)]
- Removed even more warnings.

24 years ago- Removed unused MAC strip/add functions.
Guus Sliepen [Sat, 4 Nov 2000 10:37:27 +0000 (10:37 +0000)]
- Removed unused MAC strip/add functions.

24 years agoWarnings removal pass: always include config.h first; add a few
Ivo Timmermans [Fri, 3 Nov 2000 22:35:12 +0000 (22:35 +0000)]
Warnings removal pass: always include config.h first; add a few
prototypes in the header files.

This also fixes a few lint errors/warnings.

24 years agoRun the scripts tinc-up and tinc-down from a separate function, which
Ivo Timmermans [Fri, 3 Nov 2000 22:33:16 +0000 (22:33 +0000)]
Run the scripts tinc-up and tinc-down from a separate function, which
sets the environment as it should be and checks for errors.

24 years agoSave the environment on startup.
Ivo Timmermans [Fri, 3 Nov 2000 22:31:55 +0000 (22:31 +0000)]
Save the environment on startup.

24 years agoMinor cosmetic change.
Ivo Timmermans [Thu, 2 Nov 2000 23:02:49 +0000 (23:02 +0000)]
Minor cosmetic change.

24 years ago- If necessary, patch po/Makefile.in from po-Makefile.in.in.diff to
Ivo Timmermans [Thu, 2 Nov 2000 22:51:16 +0000 (22:51 +0000)]
- If necessary, patch po/Makefile.in from po-Makefile.in.in.diff to
get DESTDIR installation (required to get locales installed
correctly).
- Use dh_perl to get accurate perl dependencies.

24 years agoOops, and include doc-base.tinc (new file).
Ivo Timmermans [Thu, 2 Nov 2000 22:11:18 +0000 (22:11 +0000)]
Oops, and include doc-base.tinc (new file).

24 years agoDon't include shlibs, as it no longer exists.
Ivo Timmermans [Thu, 2 Nov 2000 22:10:09 +0000 (22:10 +0000)]
Don't include shlibs, as it no longer exists.

24 years agoChanged a few messages wrt. system calls; updated and changed the Dutch translation...
Ivo Timmermans [Thu, 2 Nov 2000 22:05:36 +0000 (22:05 +0000)]
Changed a few messages wrt. system calls; updated and changed the Dutch translation a bit.

24 years agoMention fileutils, add a pointer to THANKS for more details
Ivo Timmermans [Thu, 2 Nov 2000 21:43:03 +0000 (21:43 +0000)]
Mention fileutils, add a pointer to THANKS for more details

24 years agoChange wsl to Wessel's name and email address in the ChangeLog creation
Ivo Timmermans [Thu, 2 Nov 2000 21:41:53 +0000 (21:41 +0000)]
Change wsl to Wessel's name and email address in the ChangeLog creation

24 years agoMore exhaustive list of changes - perhaps it can be worded differently?
Ivo Timmermans [Thu, 2 Nov 2000 21:40:33 +0000 (21:40 +0000)]
More exhaustive list of changes - perhaps it can be worded differently?

24 years agoChanged `I' to `We' - small change, lots of difference :)
Ivo Timmermans [Thu, 2 Nov 2000 21:39:57 +0000 (21:39 +0000)]
Changed `I' to `We' - small change, lots of difference :)

24 years agoOnly check for linux/if_tun.h once
Ivo Timmermans [Thu, 2 Nov 2000 21:38:55 +0000 (21:38 +0000)]
Only check for linux/if_tun.h once

24 years agoAdded a perl example to turn an IP address into a MAC address.
Ivo Timmermans [Thu, 2 Nov 2000 21:34:45 +0000 (21:34 +0000)]
Added a perl example to turn an IP address into a MAC address.

24 years agoDo not include $(top_srcdir)/cipher, it does no longer exist.
Ivo Timmermans [Thu, 2 Nov 2000 21:26:51 +0000 (21:26 +0000)]
Do not include $(top_srcdir)/cipher, it does no longer exist.

24 years ago- Synchronized changelog with the package's changelog.
Ivo Timmermans [Thu, 2 Nov 2000 20:29:03 +0000 (20:29 +0000)]
- Synchronized changelog with the package's changelog.
- Changed maintainer email address.
- New file doc-base.tinc.
- Better Build-Depends and Depends lines.

24 years agoThis file is no longer needed.
Ivo Timmermans [Thu, 2 Nov 2000 20:25:35 +0000 (20:25 +0000)]
This file is no longer needed.

24 years agoRemoved config file parsing and interface setup. This will be handled by
Guus Sliepen [Tue, 31 Oct 2000 16:22:49 +0000 (16:22 +0000)]
Removed config file parsing and interface setup. This will be handled by
the tinc-up and tinc-down scripts from now on.

24 years ago- Update.
Guus Sliepen [Tue, 31 Oct 2000 16:10:17 +0000 (16:10 +0000)]
- Update.

24 years ago- Fixed some spelling mistakes and terminology here and there.
Guus Sliepen [Mon, 30 Oct 2000 10:19:06 +0000 (10:19 +0000)]
- Fixed some spelling mistakes and terminology here and there.

24 years ago- Small cleanups
Guus Sliepen [Mon, 30 Oct 2000 00:22:54 +0000 (00:22 +0000)]
- Small cleanups
- Updated dutch translation
- Updated man pages

24 years ago- Finishing touch: encrypt the meta connections
Guus Sliepen [Sun, 29 Oct 2000 22:55:15 +0000 (22:55 +0000)]
- Finishing touch: encrypt the meta connections

24 years ago- Use CFB mode for encrypting packets: it works and we don't need padding.
Guus Sliepen [Sun, 29 Oct 2000 22:10:44 +0000 (22:10 +0000)]
- Use CFB mode for encrypting packets: it works and we don't need padding.

24 years ago- Small fixes
Guus Sliepen [Sun, 29 Oct 2000 10:39:08 +0000 (10:39 +0000)]
- Small fixes
- Do proper key exchange
- Encrypt packets - it works, but there is something wrong with the MAC
  header after decryption...

24 years ago- Removed old encr stuff
Guus Sliepen [Sun, 29 Oct 2000 09:19:27 +0000 (09:19 +0000)]
- Removed old encr stuff

24 years ago- Updated dutch translation.
Guus Sliepen [Sun, 29 Oct 2000 02:07:41 +0000 (02:07 +0000)]
- Updated dutch translation.
- Shutdown properly.

24 years ago- Moved connlist stuff to the proper header file.
Guus Sliepen [Sun, 29 Oct 2000 01:27:23 +0000 (01:27 +0000)]
- Moved connlist stuff to the proper header file.

24 years ago- Enforce correct order of authentication requests
Guus Sliepen [Sun, 29 Oct 2000 01:08:09 +0000 (01:08 +0000)]
- Enforce correct order of authentication requests

24 years ago- Hit people who can't figure out subnet address/mask pairs with a
Guus Sliepen [Sun, 29 Oct 2000 00:46:43 +0000 (00:46 +0000)]
- Hit people who can't figure out subnet address/mask pairs with a
  (clue)bat.

24 years ago- Fixed ans_key_h
Guus Sliepen [Sun, 29 Oct 2000 00:24:31 +0000 (00:24 +0000)]
- Fixed ans_key_h
- Removed tapsubnet configuration option.

24 years ago- Very big cleanup.
Guus Sliepen [Sun, 29 Oct 2000 00:02:20 +0000 (00:02 +0000)]
- Very big cleanup.

24 years ago- Override destination ethernet address on incoming packets with
Guus Sliepen [Sat, 28 Oct 2000 21:52:22 +0000 (21:52 +0000)]
- Override destination ethernet address on incoming packets with
  FE:FD:00:00:00:00

24 years ago- Fixed offsets when reading/writing from/to tap device
Guus Sliepen [Sat, 28 Oct 2000 21:25:21 +0000 (21:25 +0000)]
- Fixed offsets when reading/writing from/to tap device

24 years ago- Lots of small fixes
Guus Sliepen [Sat, 28 Oct 2000 21:05:20 +0000 (21:05 +0000)]
- Lots of small fixes
- Exchange subnets on acknowledgement of connection
- Do proper lookup when incoming packets from tap
- off-by-a small number-error when reading/sending tap packets

24 years agoSkip the check for Linux kernel sources
Ivo Timmermans [Sat, 28 Oct 2000 19:34:53 +0000 (19:34 +0000)]
Skip the check for Linux kernel sources

24 years ago- Updated subnet list handling. Subnets are added to two lists now, the
Guus Sliepen [Sat, 28 Oct 2000 16:41:40 +0000 (16:41 +0000)]
- Updated subnet list handling. Subnets are added to two lists now, the
  owner's list and a global list. It is all fucked up but it probably
  works anyway, good enough for pre3 :).

24 years ago- Lots of little stuff modified
Guus Sliepen [Tue, 24 Oct 2000 15:46:18 +0000 (15:46 +0000)]
- Lots of little stuff modified
- Succesfully reads in subnets from host config file now and adds them to
  the list.

24 years agoOops, echelon change committed to cabal... :)
Ivo Timmermans [Mon, 23 Oct 2000 21:56:56 +0000 (21:56 +0000)]
Oops, echelon change committed to cabal... :)

24 years ago- route.c will contain the routing logic.
Guus Sliepen [Mon, 23 Oct 2000 13:52:54 +0000 (13:52 +0000)]
- route.c will contain the routing logic.

24 years agoread_server_config: Check for result of read_config_file.
Ivo Timmermans [Sun, 22 Oct 2000 13:47:41 +0000 (13:47 +0000)]
read_server_config: Check for result of read_config_file.

24 years agoInclude linux/sockios.h and net/if.h anyway, regardless of the value of HAVE_TUNTAP.
Ivo Timmermans [Sun, 22 Oct 2000 13:37:15 +0000 (13:37 +0000)]
Include linux/sockios.h and net/if.h anyway, regardless of the value of HAVE_TUNTAP.

24 years ago- Fixed all debug levels.
Guus Sliepen [Sat, 21 Oct 2000 11:52:08 +0000 (11:52 +0000)]
- Fixed all debug levels.
- Seed PRNG before generating a challenge
- Strange thing in challenge decryption: it fails if first bit is set!?

24 years ago- Removed last reference to genauth from Makefile.am
Guus Sliepen [Fri, 20 Oct 2000 19:46:58 +0000 (19:46 +0000)]
- Removed last reference to genauth from Makefile.am
- Tinc spawns tinc-up and tinc-down scripts which can be used to configure
  the network device. The environment variable IFNAME is set to the name
  of the interface.

24 years ago- Made Makefile.am stub for doc/es/
Guus Sliepen [Fri, 20 Oct 2000 16:49:20 +0000 (16:49 +0000)]
- Made Makefile.am stub for doc/es/
- Merged genauth into tincd
- Updated dutch translation

24 years ago- tinc now really does public/private key encryption! It even works, whee!
Guus Sliepen [Fri, 20 Oct 2000 15:34:38 +0000 (15:34 +0000)]
- tinc now really does public/private key encryption! It even works, whee!

24 years agoChanged changelog
Ivo Timmermans [Thu, 19 Oct 2000 17:29:22 +0000 (17:29 +0000)]
Changed changelog

24 years ago- Seed the PRNG using /dev/random before generating the keys.
Guus Sliepen [Thu, 19 Oct 2000 14:42:00 +0000 (14:42 +0000)]
- Seed the PRNG using /dev/random before generating the keys.

24 years agoGet the head revision up to date with cabal
Ivo Timmermans [Wed, 18 Oct 2000 19:44:11 +0000 (19:44 +0000)]
Get the head revision up to date with cabal

24 years agoDon't declare cp_file and cp_line in xmalloc()
Ivo Timmermans [Tue, 17 Oct 2000 10:15:20 +0000 (10:15 +0000)]
Don't declare cp_file and cp_line in xmalloc()

24 years agoProcess subdir es/
Ivo Timmermans [Tue, 17 Oct 2000 10:14:25 +0000 (10:14 +0000)]
Process subdir es/

24 years ago- More fixing. Tinc daemons can now even create activated connections.
Guus Sliepen [Mon, 16 Oct 2000 19:04:47 +0000 (19:04 +0000)]
- More fixing. Tinc daemons can now even create activated connections.

24 years ago- Fixing little things
Guus Sliepen [Mon, 16 Oct 2000 16:33:30 +0000 (16:33 +0000)]
- Fixing little things
- Two tinc daemons can connect to eachother now (but they disconnect right
  after the ACKs).

24 years agoOutput doc/es/Makefile
Ivo Timmermans [Mon, 16 Oct 2000 11:35:10 +0000 (11:35 +0000)]
Output doc/es/Makefile

24 years agoCorrected #ifdefs for tun/tap support.
Guus Sliepen [Sun, 15 Oct 2000 20:30:39 +0000 (20:30 +0000)]
Corrected #ifdefs for tun/tap support.