DL6ER
78f615201a
Some non-POSIX systems use different conventions for exit status values.
...
For greater portability, we now use the macros EXIT_SUCCESS and EXIT_FAILURE for the conventional status value for success and failure, respectively.
They are declared in stdlib.h
2017-03-29 14:00:51 +02:00
DL6ER
5b4cdc5ce3
Minor optimization for setupVars.conf interpreter
2017-03-27 11:10:03 +02:00
DL6ER
cc7ccc5921
Improve documentation of thread locks. Allow concurrently active clients accessing the data struction in read-only mode
2017-03-16 01:18:09 +01:00
DL6ER
7c9b1b4195
Add config file parser. First config arguments are
...
SOCKET_LISTENING=all|local
INCLUDE_YESTERDAY=true|false
If FTL we cannot find or interpret a config variable value, it will skip it and use the default value
2017-03-14 12:20:07 +01:00
DL6ER
f73ed48dbf
Implement FTL garbage collector
2017-03-12 21:03:05 +01:00
DL6ER
a299f9559b
Don't start log re-parsing if threadlock is set (this could lead to an inifinite loop if ther are > 300.000 queries in todays log on slow devices)
2017-03-12 16:26:43 +01:00
DL6ER
89d6567259
Add thread names
2017-03-12 16:16:36 +01:00
DL6ER
e303d9e670
New command line arguments: debugclients debugthreads
...
Also don't return clients or forwards with a count of 0
2017-03-10 14:12:10 +01:00
DL6ER
ccf51c583b
Create client connection handler threads in detached (instead of joinable) mode. Hereby we can guarantee that any resources allocated by the threads will be automaticall released back to the system when the client thread terminates
2017-03-08 14:29:43 +01:00
DL6ER
6ccfeea2da
Guarantee FTL's thread safety
2017-03-08 11:47:58 +01:00
DL6ER
fa99b5b88d
[MAJOR change] FTL is now multi-threaded. There will be one core process (which catches signals handles them), one log processing thread (waiting for log changes), one listening thread (waiting for incoming connections) and one thread for each client that is connected (waiting for requests to be answered by FTL)
2017-03-08 11:32:25 +01:00
DL6ER
eaf5c569fb
Process some more return values
2017-02-08 12:59:13 +01:00
DL6ER
b01d6b6194
Interpret command line arguments (use pihole-FTL debug for debug mode)
2017-02-06 13:19:17 +01:00
DL6ER
75a3085acb
Save files in new locations + added install target in Makefile
2017-02-06 12:36:02 +01:00
DL6ER
6533043968
Create struct that holds FTL related filenames
2017-02-03 23:51:44 +01:00
DL6ER
68984e354e
Initial upload of the FTL engine
2017-02-02 12:44:45 +01:00