Commit Graph
17 Commits
Author SHA1 Message Date
DL6ER e2d0529993 Implement name resolving power back for FTLDNS. This re-implements lots of already extensively tested code that was present in pre-FTLDNS for over a year. This implementation is only slightly different by ensuring that name resolution is done in a specific non-blocking way.
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-04-11 18:20:06 +02:00
DL6ER 2ae4b52bb3 A number of improvements:
- use "extern" for the glibal variable specifications in the header files (and clarif where the variables are actually defined)
- record number of failed requests to forward destinations
- Add dnsmasq_interface.h to DTLDEPS
- Add new request type ">cacheinfo" to get information about cache usage in the resolver

Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-26 17:24:09 +01:00
DL6ER e75bd26994 Improve overall memory handling by checking for failed memory allocation events at the places we need the allocated space
Signed-off-by: DL6ER <dl6er@dl6er.de>
2018-02-07 13:23:54 +01:00
DL6ER 75cea2c32b Some improvements for getline() 2017-06-03 18:54:05 +02:00
DL6ER 50716ee5c2 strncat() NULL-terminates the copied string while strncpy() doesn't! 2017-05-15 12:13:02 +02:00
DL6ER 2bbacbf1c2 Replace all fgets() calls by readline() to become independent of all existing line length limitations (#43) 2017-05-12 17:20:04 +02:00
DL6ER 729159d918 Free allocated memory before leaving the if-clause. Fixes #36 (#39) 2017-05-10 19:47:44 +02:00
DL6ER 63e1e4505c Check pointer values to avoid double-free issues (#31) 2017-05-05 13:57:07 +02:00
DL6ER 57af845e04 Don't forget to free linebuffer also when not used (#28) 2017-05-05 11:10:17 +02:00
DL6ER 055ce53c23 Increase maximum length of parsed lines in setupVars.conf to 100000 2017-04-14 14:00:02 +02:00
DL6ER 16a788429b Removed logg_str 2017-04-08 18:34:37 +02:00
DL6ER b426ced9f2 GC: type not equal to 1 or 2 is no error (queries like SRV or PTR create type == 0) 2017-03-27 11:50:25 +02:00
DL6ER 5b4cdc5ce3 Minor optimization for setupVars.conf interpreter 2017-03-27 11:10:03 +02: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 dc3f44707b Free variable before returning 2017-02-06 11:23:00 +01:00
DL6ER 8b10d6dcb8 Avoid memory leak 2017-02-06 11:20:14 +01:00
DL6ER 68984e354e Initial upload of the FTL engine 2017-02-02 12:44:45 +01:00