DL6ER
7638d8cdb1
Improve socket client example + work on review comments
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 21:33:39 +01:00
DL6ER
8a720b6f19
Fix spelling
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 17:24:54 +01:00
DL6ER
e67e5e45de
Suppress connection interrupted messages for Telnet and Unix Socket
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 14:28:29 +01:00
DL6ER
54487db5cf
Close unix socket and unlink file handle on exit of FTL
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 11:59:43 +01:00
DL6ER
7ad0c66b68
Remove debug output
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 11:32:31 +01:00
DL6ER
1f7dbaa403
:codacy:
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2018-01-01 00:56:39 +01:00
DL6ER
0387304b4c
Answer Unix socket requests the exact same way we do already for the telnet interface
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2017-12-31 22:49:14 +01:00
DL6ER
3c39cb1fd2
Added Unix socket - it is listening!
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2017-12-31 22:44:08 +01:00
DL6ER
e4cbe417a1
Rename existing telnet socket functions to contain "telnet" in their names to avoid confusion when adding Unix sockets
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2017-12-31 22:25:27 +01:00
Mcat12
0d561000d3
Spelling
2017-06-12 11:13:42 -04:00
DL6ER
323add3b5e
Revamp socket routines
2017-06-12 16:28:30 +02:00
DL6ER
2f0f68e4d5
Rework thread locks (since we don't need different kinds anymore)
2017-06-03 19:08:24 +02:00
DL6ER
76f2039a2a
bzero is obsolete. Using memset instead
2017-04-08 23:46:33 +02:00
DL6ER
c95198631a
Flush port and PID files on termination of FTL
2017-04-08 23:11:54 +02:00
DL6ER
4fee334c95
Allow re-binding to used port in case FTL is restarted in short intervals. This is common practice in server programs.
2017-04-08 22:57:56 +02:00
DL6ER
9e7a57c417
Removed logg_str_str_int
2017-04-08 18:40:34 +02:00
DL6ER
16a788429b
Removed logg_str
2017-04-08 18:34:37 +02:00
DL6ER
ece9f18c1b
Removed logg_int
2017-04-08 18:27:56 +02:00
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