Commit graph

154 commits

Author SHA1 Message Date
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
Guus Sliepen
b0825f36b7 Better error messages under Windows. 2003-08-08 19:39:41 +00:00
Guus Sliepen
7bed2a7099 Cygwin needs windows.h. 2003-08-03 12:37:55 +00:00
Guus Sliepen
f08fc359a0 Install tinc as a service under Windows (MinGW). Remove cleanup_and_exit(),
either exit() directly on errors or let main_loop() shutdown gracefully.
2003-08-02 20:50:38 +00:00
Guus Sliepen
da3078c63a Check if the compiler knows about the __malloc__ attribute. 2003-07-31 11:17:39 +00:00
Guus Sliepen
d798b8b3d8 Prevent definitions from messing up attributes. 2003-07-30 21:52:41 +00:00
Guus Sliepen
721e4caee0 Native Windows support. 2003-07-29 22:59:01 +00:00
Guus Sliepen
714fb32d03 Fix compile errors and warnings. 2003-07-29 10:50:15 +00:00
Guus Sliepen
0e94541331 More checks for missing functions. 2003-07-28 22:06:09 +00:00
Guus Sliepen
83263b7446 Sprinkle around a lot of const and some C99 initialisers. 2003-07-24 12:08:16 +00:00
Guus Sliepen
c1e8152f4f Be consistent. 2003-07-21 13:14:02 +00:00
Guus Sliepen
96ee04b678 Check for ethernet/ipv4/ipv6 related structures. 2003-07-18 13:42:35 +00:00
Guus Sliepen
271d3537fe Remove all #ifndefs from route.c 2003-07-18 12:21:03 +00:00
Guus Sliepen
b0a4f7b555 Even more missing definitions. 2003-07-18 12:16:24 +00:00
Guus Sliepen
e449d94cae Big header file cleanup: everything that has to do with standard system
libraries is moved to system.h.
2003-07-17 15:06:27 +00:00
Guus Sliepen
085d33e626 Update copyrights. 2003-07-12 17:48:38 +00:00
Guus Sliepen
5db596c684 Simplify logging, update copyrights and some minor cleanups. 2003-07-12 17:41:48 +00:00
Guus Sliepen
2a7f11c0e9 More missing IPv6 definitions and autoconf checks to make sure it compiles
under Solaris 2.6.
2003-07-11 16:13:00 +00:00
Guus Sliepen
71f8124ea4 More missing definitions. 2003-07-07 11:50:52 +00:00
Guus Sliepen
a88f1edf29 Actually add ipv6.h. 2003-07-07 11:13:31 +00:00
Guus Sliepen
30c0381d71 Provide all missing IPv6 definitions in lib/ipv6.h. 2003-07-07 11:11:33 +00:00
Guus Sliepen
1401faf608 Sprinkling the source with static and attributes. 2003-07-06 23:16:29 +00:00
Guus Sliepen
0b9175e998 Define logger(), cleans up source code and allows us to write log entries
to a separate file.
2003-07-06 22:11:37 +00:00
Guus Sliepen
cf63cbef2b Fixes from Wessel Danker's libavl. 2003-06-11 19:39:02 +00:00
Guus Sliepen
1783a3aaa9 Various fixes for autoconf and OpenSSL 0.9.7 and a missing header. 2003-01-17 00:43:58 +00:00
Guus Sliepen
5eca9520d9 Small fixes so tinc compiles out of the box on SunOS 5.8 2002-09-15 14:55:54 +00:00
Guus Sliepen
f6905582d0 Make sure malloc() is declared. 2002-09-10 22:13:22 +00:00
Guus Sliepen
eaf1208e9d Fix placement of #include "config.h" 2002-09-10 22:13:01 +00:00
Guus Sliepen
161f917dd0 Fix compiler warnings. 2002-09-10 09:40:25 +00:00
Guus Sliepen
6f9f6779e6 Remove redundant spaces. 2002-09-09 22:33:31 +00:00
Guus Sliepen
9f38e39463 Switch to K&R style indentation. 2002-09-09 21:49:16 +00:00
Guus Sliepen
5fc1ed17f4 Cleanups:
- Convert cp to cp(); so that automatic indenters work.
 - Convert constructions like if(x == NULL) to if(!x).
 - Move all assignments out of conditions.
2002-09-09 19:40:12 +00:00
Guus Sliepen
e4d85a6557 Typo. 2002-09-04 23:11:58 +00:00
Guus Sliepen
b4f87952bf Add missing headers. 2002-09-04 23:05:49 +00:00
Guus Sliepen
856de4c5fe Make sure setlocale() is available. 2002-09-03 20:42:05 +00:00
Guus Sliepen
912e7e968f Gettext 1.11.5 compatibility. 2002-08-24 12:11:40 +00:00
Guus Sliepen
c4cd199357 Include complete fake-getname/addrinfo from OpenSSH. 2002-07-12 11:45:21 +00:00
Guus Sliepen
627f7c22b4 s/sliepen.warande.net/sliepen.eu.org/g
s/itimmermans@bigfoot.com/ivo@o2w.nl/g
2002-06-21 10:11:37 +00:00
Ivo Timmermans
7608136a8d Include a few more header files 2002-06-09 16:12:04 +00:00
Ivo Timmermans
548551fd05 getnameinfo fixes 2002-06-09 15:50:12 +00:00
Ivo Timmermans
9d769e0bf2 OSX support 2002-06-09 15:26:10 +00:00
Guus Sliepen
61cb593e67 Extend list_t with the number of elements in the list. 2002-03-27 15:01:16 +00:00
Guus Sliepen
f0aa9641e8 Merging of the entire pre5 branch. 2002-02-10 21:57:54 +00:00
Ivo Timmermans
2ec5b5f862 Added dropin replacements for get*info and helper functions. 2001-11-16 17:37:08 +00:00
Guus Sliepen
e06415e3d9 More fixes for Solaris. 2001-11-05 19:09:08 +00:00
Guus Sliepen
25a804c94e Various fixes needed for Solaris. 2001-11-05 19:06:07 +00:00
Guus Sliepen
099cc867c1 Removed compiler warning. 2001-02-27 16:50:29 +00:00
Guus Sliepen
38adc479a4 Free node->data and node, not node->data twice. 2001-02-25 15:34:50 +00:00
Wessel Dankers
0b0c2a372f Important bugfix in avl_insert_before() and avl_insert_after() 2001-02-20 21:53:18 +00:00
Ivo Timmermans
cebb6efeb0 More files to ignore in CVS 2001-02-11 11:55:28 +00:00
Guus Sliepen
603781831f - Updated CVS_CREATED to remove intl/ directory and some other
autogenerated files.
- Checked if all INCLUDES/LIBS/etc directives inherit the global variables.
2001-02-11 11:50:09 +00:00
Guus Sliepen
4bc394a3e2 Fix memory leak in avl_insert() if item was already inserted. 2001-02-06 10:13:22 +00:00
Guus Sliepen
f777c1807d FreeBSD compile fixes (thanks to XeF4) 2001-02-06 10:12:51 +00:00
Guus Sliepen
e5e1c20a99 - Sign was wrong in search_closest_smaller/greater 2001-01-08 21:32:00 +00:00
Guus Sliepen
d3f889c807 - It's 2001, all copyright notices are updated. 2001-01-07 17:09:07 +00:00
Guus Sliepen
049ff67817 - Changed list routines to give it the same look'n'feel as the rbl and
avl tree library.
2001-01-07 15:24:52 +00:00
Guus Sliepen
90bf1b21fa - Changed license of AVL tree library to GPL. 2001-01-06 18:21:17 +00:00
Guus Sliepen
052fbc0bdf - Doubled size of trace buffer for easier debugging. 2001-01-05 23:51:41 +00:00
Guus Sliepen
77509da76c - AVL tree routines: faster than RBL, and also more stable. 2001-01-05 23:50:56 +00:00
Ivo Timmermans
8ea23d9ec3 xstrdup now takes a const pointer as an argument. 2000-11-29 14:23:08 +00:00
Ivo Timmermans
1ca04711ae Check for get_current_dir_name. There is a replacement function in
dropin.c.
2000-11-29 00:33:15 +00:00
Ivo Timmermans
c94f763742 dropin.c/h contain a set of drop-in replacements for non-standard C
library functions (read: GNU extensions).
2000-11-28 23:23:41 +00:00
Guus Sliepen
0806605ce3 - Added daemon() replacement. 2000-11-24 23:30:50 +00:00
Guus Sliepen
cf49b2c064 Another big & bad commit:
- Added some extra search functions to rbl routines
- Fix subnet_lookup()
- Reorder some syslog messages to make more sense
- daemon() is back
- Don't let scripts execute in parallel (gives race conditions, and
  anyway something MIGHT just be configured which is necessary for further
  execution of tinc itself)
- Accidently merged check_child() with execute_script().
- Small fixes
2000-11-24 23:13:07 +00:00
Ivo Timmermans
4cb4a7d298 Set errno to 0 before trying to kill the other process. 2000-11-24 14:13:06 +00:00
Guus Sliepen
7aa7895629 - #include <stdlib.h> instead of <malloc.h> 2000-11-22 23:09:38 +00:00
Guus Sliepen
dac256505e - Fixed all (except 2) compiler warnings gcc -Wall gave. 2000-11-22 22:18:03 +00:00
Guus Sliepen
6f373e6902 - More porting to FreeBSD and Solaris. 2000-11-22 22:05:37 +00:00
Guus Sliepen
394ed3fb17 - Write pidfile AFTER detaching...
- Minor cleanups
2000-11-22 19:14:09 +00:00
Guus Sliepen
f8b4a000d0 - Cleaned up and checked for some more NULL pointers in rbl.c
- Two connection lists: one for incoming connections, sorted on ip/port,
  one for connections whose identity we know, sorted on id ofcourse...
2000-11-22 18:54:08 +00:00
Guus Sliepen
9e9e1925b9 - Check for NULL tree->delete callback
- Add xstrdup() function
2000-11-21 09:13:59 +00:00
Guus Sliepen
3a6200c1e3 - Various small fixes. 2000-11-20 22:13:14 +00:00
Guus Sliepen
408ca91766 - Integrate rbl trees into tinc. 2000-11-20 19:12:17 +00:00
Guus Sliepen
8f273f0ee2 - Small fixes 2000-11-19 22:12:46 +00:00
Guus Sliepen
cc7c078774 - Deletion also works now. 2000-11-19 11:05:59 +00:00
Guus Sliepen
3526f1e151 - Fixed a lot of small things. Tested everything except deletions. 2000-11-19 02:04:29 +00:00
Guus Sliepen
4f68e5b613 - Fix tree head/tail upon insertion 2000-11-18 23:22:44 +00:00
Guus Sliepen
880cd6f1a9 - Implemented deletions
- Added rbl_foreach() function
2000-11-18 23:21:01 +00:00
Guus Sliepen
00e5d57262 - Fixed searching
- Insertion implemented
2000-11-18 18:14:57 +00:00
Ivo Timmermans
2626c641aa Use proper prototypes. 2000-11-16 22:13:09 +00:00
Ivo Timmermans
30f34015ee New function: xmalloc_and_zero, which initialises the allocated memory
to all zeroes.
2000-11-16 18:06:39 +00:00
Guus Sliepen
aa755206da - Added balanced tree management stuff as well. (It is not finished yet.) 2000-11-16 09:18:38 +00:00
Ivo Timmermans
d9ce5a7f3f List management and manipulation routines. 2000-11-15 22:04:48 +00:00
Guus Sliepen
16847ea255 - Make checkpoint tracing a compile time option (off by default) 2000-11-08 20:52:37 +00:00
Guus Sliepen
f8f1007bf4 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.
2000-11-08 00:10:50 +00:00
Guus Sliepen
56bd0864e4 Porting to SunOS 5.8:
- Include all header files necessary
- Check for flock() function
2000-11-07 22:33:33 +00:00
Guus Sliepen
f25868fd2b - 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
2000-10-28 21:05:20 +00:00
Guus Sliepen
52b842f807 - Fixed all debug levels.
- Seed PRNG before generating a challenge
- Strange thing in challenge decryption: it fails if first bit is set!?
2000-10-21 11:52:08 +00:00
Guus Sliepen
fba19c30c9 - Made Makefile.am stub for doc/es/
- Merged genauth into tincd
- Updated dutch translation
2000-10-20 16:49:20 +00:00
Ivo Timmermans
e75315dae6 Don't declare cp_file and cp_line in xmalloc() 2000-10-17 10:15:20 +00:00
Guus Sliepen
bb3d18d56f - Fixing little things
- Two tinc daemons can connect to eachother now (but they disconnect right
  after the ACKs).
2000-10-16 16:33:30 +00:00
Guus Sliepen
85adeef212 - The daemon actually runs now (somewhat)
- Added support for tun/tap driver (autodetect!)
- More sophisticated checkpoint functionality
- Updated dutch translation
2000-10-15 00:59:37 +00:00
Guus Sliepen
e9635ae38e - Second fixing-things pass: it even links now.
- Lots of FIXME comments added to the source code.
2000-10-14 17:04:16 +00:00
Guus Sliepen
183a8edd22 - Fixing-things pass: every source file compiles into an object file now,
but linking tincd does not work yet (must link with openssl libs and
  define some missing functions).
2000-10-11 22:01:02 +00:00
Ivo Timmermans
d335c6d0d7 Added some structures and types that are needed for the overhaul. 2000-09-14 14:32:34 +00:00
Ivo Timmermans
ef294a6967 Include ../intl in the include path, and add @INTLLIBS@ to the list of libraries. 2000-06-06 10:24:33 +00:00
Ivo Timmermans
6182664859 Include stdio.h for fprintf. 2000-05-04 00:00:06 +00:00