Commit graph

2201 commits

Author SHA1 Message Date
Guus Sliepen
0806605ce3 - Added daemon() replacement. 2000-11-24 23:30:50 +00:00
Guus Sliepen
cfb828784e - Added Armijn to the list 2000-11-24 23:14:52 +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
97c54ffb35 Add default tinc-up and tinc-down scripts for a Debian system. These
do not yet work, it's just old code from init.d.
2000-11-24 16:52:57 +00:00
Ivo Timmermans
b42c9abafd Call autogen.sh instead of configure alone; and make cvs-clean instead
of distclean.  This way you can just cvs checkout && dpkg-buildpackage
in one go.
2000-11-24 14:15:20 +00:00
Ivo Timmermans
edb9b4cad0 Explain how to tell configure where OpenSSL lives. 2000-11-24 14:13:51 +00:00
Ivo Timmermans
4cb4a7d298 Set errno to 0 before trying to kill the other process. 2000-11-24 14:13:06 +00:00
Ivo Timmermans
ef88db6312 Alter CFLAGS, somehow INCLUDES doesn't propagate properly. Still
doesn't work exactly like it should, but getting there.
2000-11-24 14:12:31 +00:00
Ivo Timmermans
b178228401 Set CFLAGS to -O2 -Wall when running configure 2000-11-24 14:04:49 +00:00
Ivo Timmermans
eb36b0c1ef Use cvs2cl instead of rcs2log to generate the ChangeLog. 2000-11-24 14:00:32 +00:00
Ivo Timmermans
2f37f2bd8a Set localstatedir to /var 2000-11-24 14:03:13 +00:00
Ivo Timmermans
31aa429846 Do not attempt to retreive ChangeLog information only from the CABAL
tag, it doesn't work anyway.
2000-11-24 13:33:48 +00:00
Ivo Timmermans
f2dd7bb42c Do not check for the daemon() system call 2000-11-24 13:32:26 +00:00
Ivo Timmermans
b0ff879e7c Do not use the C library's daemon() call. 2000-11-24 12:44:39 +00:00
Guus Sliepen
cebcf78b9a - Don't link with -ldl anymore
- Let's not use bash' built-in pwd function anymore... it does not follow
  symlinks.
2000-11-23 09:30:33 +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
5971e352da - Work with the correct key buffer in ans_key_h 2000-11-22 20:25:27 +00:00
Guus Sliepen
a07602c4fd - No more %as. 2000-11-22 19:55:53 +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
Ivo Timmermans
785684f0ec Declare fd. 2000-11-22 17:49:16 +00:00
Ivo Timmermans
e42255ae13 Add more checks to ensure that filedescriptors are right in
_execute_script().
2000-11-22 17:48:15 +00:00
Ivo Timmermans
2ed6813404 Honor the --localstatedir option to configure, instead of hardcoded /var. 2000-11-22 16:19:07 +00:00
Guus Sliepen
9e9e1925b9 - Check for NULL tree->delete callback
- Add xstrdup() function
2000-11-21 09:13:59 +00:00
Guus Sliepen
da9a1e8084 - More fixes. 2000-11-20 23:29:47 +00:00
Guus Sliepen
3a6200c1e3 - Various small fixes. 2000-11-20 22:13:14 +00:00
Ivo Timmermans
06afd357b0 Get rid of all libtool references at once. libtool was only used by
libblowfish, which was superseded by openssl.
2000-11-20 19:56:01 +00:00
Guus Sliepen
1857b3c97c - Proper initialization of rbltree structures. 2000-11-20 19:41:13 +00:00
Guus Sliepen
408ca91766 - Integrate rbl trees into tinc. 2000-11-20 19:12:17 +00:00
Ivo Timmermans
9024e01ce6 Also include process.h 2000-11-20 18:06:17 +00:00
Ivo Timmermans
3cc063d23a More function and header checks 2000-11-20 18:05:34 +00:00
Ivo Timmermans
59aa15d3d1 Added this release 2000-11-20 18:02:15 +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
Guus Sliepen
7fcc0c6415 - Removed stray @INCLUDE@ (how did that get there?)
- Use 0 instead of FALSE
2000-11-17 10:03:02 +00:00
Guus Sliepen
44cbd13e52 - Simplified do_detach 2000-11-17 00:56:49 +00:00
Ivo Timmermans
2626c641aa Use proper prototypes. 2000-11-16 22:13:09 +00:00
Ivo Timmermans
5d1145f2c4 Move more functions from tincd.c into process.c. 2000-11-16 22:12:23 +00:00
Ivo Timmermans
485f7a5043 Delete struct ifr 2000-11-16 22:11:40 +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
Ivo Timmermans
2764532ea7 Move all process-related functions into process.c. 2000-11-16 17:54:29 +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
7f87c3d913 Keep a list of running children, and in each loop in main_loop(),
check if one has exited.
2000-11-15 22:07:36 +00:00
Ivo Timmermans
d9ce5a7f3f List management and manipulation routines. 2000-11-15 22:04:48 +00:00