Guus Sliepen
faff649882
Don't let tinc service depend on NDIS component.
2004-11-01 15:18:22 +00:00
Guus Sliepen
6411e0d8bd
strndupa() is too arcane for some environments.
2004-10-01 18:24:41 +00:00
Guus Sliepen
e5e0dd7534
Clean up environment after executing scripts.
2004-06-14 14:32:10 +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
a3cd273751
Missing space between words.
2003-12-07 14:29:02 +00:00
Guus Sliepen
0b5e6cf04e
Complain if pid file cannot be created.
2003-11-27 23:24:59 +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
3e0b28b0c4
Remove debug message.
2003-08-22 15:07:57 +00:00
Guus Sliepen
570e7e9c61
Don't overwrite the first " when installing a service.
2003-08-22 15:05:01 +00:00
Guus Sliepen
5ac4179df6
If we're not in main_loop() and the service is stopped, exit immediately.
2003-08-17 12:05:08 +00:00
Guus Sliepen
fd40130eb6
stat() batch files under Windows.
2003-08-16 12:11:11 +00:00
Guus Sliepen
ae070b9170
Add a description for the Service control panel.
2003-08-10 13:35:05 +00:00
Guus Sliepen
7eed829d28
Only system() needs script name quoted.
2003-08-08 22:45:46 +00:00
Guus Sliepen
9bde92ce97
Simpler checking of permissions on private RSA key and other fixes.
2003-08-08 22:11:54 +00:00
Guus Sliepen
96f5d98fc2
Small things.
2003-08-08 19:56:11 +00:00
Guus Sliepen
7f05445047
Quote when needed and don't try stuff that doesn't work under Windows.
2003-08-08 19:43:47 +00:00
Guus Sliepen
691907caae
Readd quotes.
2003-08-08 17:17:13 +00:00
Guus Sliepen
863349638b
Simplify execute_script(). It will probably work under Windows as well.
2003-08-08 14:48:33 +00:00
Guus Sliepen
070aee3be1
Tell windows to be patient.
2003-08-08 12:55:05 +00:00
Guus Sliepen
62a7fa9a7b
Simplify translation
2003-08-03 21:45:13 +00:00
Guus Sliepen
3671ed806d
Keep Windows happy.
2003-08-03 12:38:18 +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
2531ff59b7
Woops!
2003-07-31 14:24:19 +00:00
Guus Sliepen
d798b8b3d8
Prevent definitions from messing up attributes.
2003-07-30 21:52:41 +00:00
Guus Sliepen
0e94541331
More checks for missing functions.
2003-07-28 22:06:09 +00:00
Guus Sliepen
eefa28059a
Use bools and enums where appropriate.
2003-07-22 20:55:21 +00:00
Guus Sliepen
e169244e4b
Use functions from logger.c
2003-07-21 14:47:43 +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
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
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
Ivo Timmermans
e310cc82d3
Fix saving of debug level for startup level 0
2002-09-30 19:04:37 +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
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
f75dcef72a
Switch to K&R style indentation.
2002-09-09 21:25:28 +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
431fa10b37
Small fixes.
2002-09-04 14:17:28 +00:00
Guus Sliepen
d134c4542d
Drop graph and edge stuff. Use new node stuff instead.
2002-09-03 20:43:26 +00:00
Guus Sliepen
36cbaa32f4
Allow list of environment variables to be passed to execute_script().
...
When executing host-up/down scripts, include the address and port of the
remote host.
2002-07-10 11:27:06 +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
Guus Sliepen
67a6d7bcc4
Informative log message if execl() failed.
2002-04-27 11:40:45 +00:00
Guus Sliepen
7d07df71f9
Fix execute_script().
2002-03-26 12:00:38 +00:00
Guus Sliepen
6ad5dd1a9a
Don't try to execute scripts unless they exist.
2002-03-24 16:22:59 +00:00
Guus Sliepen
9d99a789c3
Cleanup.
2002-03-19 00:07:09 +00:00
Guus Sliepen
4fda4560bb
Cleanups, spelling fixes, allow symbol names for signals (-k option),
...
don't remove pidfile if other tincd is still running.
2002-03-11 11:23:04 +00:00
Guus Sliepen
c2b9c06062
- Non-blocking connect()s.
...
- Socket handling revamped to use sockaddr_t.
- tinc can now tunnel over IPv6.
- Handle all addresses and subnets in network byte order.
Only convert them when they need to be printed.
- IPv6 subnets bigger than /128 now work.
- Use %s and strerror(errno) instead of %m.
2002-02-18 16:25:19 +00:00
Guus Sliepen
dd611fb4f9
Don't use sa_sigaction (which NetBSD doesn't like) at all if we don't use siginfo.
2002-02-12 14:29:00 +00:00
Guus Sliepen
f0aa9641e8
Merging of the entire pre5 branch.
2002-02-10 21:57:54 +00:00