-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modularize FTL modules/headers #605
Commits on Jun 29, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7a100ae - Browse repository at this point
Copy the full SHA 7a100aeView commit details -
Only include smaller header files in the source code files. Remove ro…
…utines.h Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 602bd07 - Browse repository at this point
Copy the full SHA 602bd07View commit details -
Mover timer functions in separate C file
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for c212c26 - Browse repository at this point
Copy the full SHA c212c26View commit details
Commits on Jul 1, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b02c69f - Browse repository at this point
Copy the full SHA b02c69fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff12c1b - Browse repository at this point
Copy the full SHA ff12c1bView commit details -
Move global variable declarations into the suitable header files as f…
…ar as this is applicable (we do not do it for the thread pointers as this complicates linking dependencies). Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 55ed61f - Browse repository at this point
Copy the full SHA 55ed61fView commit details -
Ignore any database files that might be present in the repository.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 1d0dc1d - Browse repository at this point
Copy the full SHA 1d0dc1dView commit details -
Move database modules into common subdirectory
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 2115cdc - Browse repository at this point
Copy the full SHA 2115cdcView commit details -
Rename database/database.c => database/common.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 57116ae - Browse repository at this point
Copy the full SHA 57116aeView commit details -
Move query table related routines into a new module database/query-ta…
…ble.o Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 4db159d - Browse repository at this point
Copy the full SHA 4db159dView commit details -
Rename query reading/saving routines for consistency.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 67e684b - Browse repository at this point
Copy the full SHA 67e684bView commit details -
Simplify get_number_of_queries_in_DB().
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for b6d4e5e - Browse repository at this point
Copy the full SHA b6d4e5eView commit details -
Rename database/{gravity.* => gravity-db.*}
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 49a009c - Browse repository at this point
Copy the full SHA 49a009cView commit details -
gravity.c has been renamed to gravity-db.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5eaf184 - Browse repository at this point
Copy the full SHA 5eaf184View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54547b9 - Browse repository at this point
Copy the full SHA 54547b9View commit details -
Readd version.h as explicit dependency in order to have it created on…
…-the-fly. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 4556b97 - Browse repository at this point
Copy the full SHA 4556b97View commit details -
Remove dependency of api.c on the huge header database/sqlite3.h and …
…fix clean target. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5a41241 - Browse repository at this point
Copy the full SHA 5a41241View commit details -
Rename object dir for dnsmasq files in Makefile.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 6b08566 - Browse repository at this point
Copy the full SHA 6b08566View commit details -
Fix wrong standard filename for FTL\'s database.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 0003124 - Browse repository at this point
Copy the full SHA 0003124View commit details -
Move all source files into new subdirectory "src". Put compiled objec…
…ts into new subdirectory "build". Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for e365364 - Browse repository at this point
Copy the full SHA e365364View commit details
Commits on Jul 4, 2019
-
Merge branch 'development' into new/modularize_headers
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for a2961d1 - Browse repository at this point
Copy the full SHA a2961d1View commit details -
Move API modules (api, request, socket, msgpack) into their own subdi…
…rectory src/api. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 6b2f22f - Browse repository at this point
Copy the full SHA 6b2f22fView commit details -
Move database thread into dedicated module.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 104ea1b - Browse repository at this point
Copy the full SHA 104ea1bView commit details
Commits on Jul 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ad27f6f - Browse repository at this point
Copy the full SHA ad27f6fView commit details -
Make variables in Makefile more readable by inserting underscores.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5699252 - Browse repository at this point
Copy the full SHA 5699252View commit details -
Change type of get_FTL_db_filesize() from double to long int.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 8280f45 - Browse repository at this point
Copy the full SHA 8280f45View commit details -
Also enforce recompilation on change of headers in the subdirectories.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for ee671a1 - Browse repository at this point
Copy the full SHA ee671a1View commit details -
Move definition of config struct into src/config.h.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 29dd190 - Browse repository at this point
Copy the full SHA 29dd190View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40a75c2 - Browse repository at this point
Copy the full SHA 40a75c2View commit details -
Move blocking status detection from files.c to setupVars.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 25161c1 - Browse repository at this point
Copy the full SHA 25161c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ce04f0 - Browse repository at this point
Copy the full SHA 3ce04f0View commit details -
The macvendor script has moved into subdirectory tools.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for a4e50c3 - Browse repository at this point
Copy the full SHA a4e50c3View commit details -
Union FTLFileNamesStruct and logFileNamesStruct and define them in co…
…nfig{.c/.h} Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for e13e39a - Browse repository at this point
Copy the full SHA e13e39aView commit details -
Fix incorrect INSERT statement in gravity.db test data.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 9f127e9 - Browse repository at this point
Copy the full SHA 9f127e9View commit details
Commits on Jul 6, 2019
-
Improve error handling and logging in database/common.c
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 8baf8e6 - Browse repository at this point
Copy the full SHA 8baf8e6View commit details -
Reduce three-fold logging of SQL errors to logging them only once. We…
… prefer to handle the logging through the SQLite3 error callback as this ensures it cannot be missed. Previously: [2019-07-06 17:00:55.526 32339] SQLite3 message: statement aborts at 36: [CREATE UNIQUE INDEX network_hwaddr_idx ON network(hwaddr)] attempt to write a readonly database (8) [2019-07-06 17:00:55.526 32339] dbquery(CREATE UNIQUE INDEX network_hwaddr_idx ON network(hwaddr)) - SQL error (8): attempt to write a readonly database [2019-07-06 17:00:55.526 32339] check_database(8): Disabling database connection due to error [2019-07-06 17:00:55.526 32339] unify_hwaddr(): "CREATE UNIQUE INDEX network_hwaddr_idx ON network(hwaddr)" failed! Now: [2019-07-06 17:00:55.526 32339] SQLite3 message: statement aborts at 36: [CREATE UNIQUE INDEX network_hwaddr_idx ON network(hwaddr)] attempt to write a readonly database (8) [2019-07-06 17:00:55.526 32339] check_database(8): Disabling database connection due to error [2019-07-06 17:00:55.526 32339] ERROR: unify_hwaddr() failed! Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 799e3b4 - Browse repository at this point
Copy the full SHA 799e3b4View commit details -
Do not assume the database is not available before we actually hit an…
… error. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 444255b - Browse repository at this point
Copy the full SHA 444255bView commit details -
No need to use heap space for a constant expression.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 71d9caa - Browse repository at this point
Copy the full SHA 71d9caaView commit details
Commits on Jul 7, 2019
-
Move checking of database parameter MAXDBDAYS into db_init() to ensur…
…e we set database to false. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 4a9503c - Browse repository at this point
Copy the full SHA 4a9503cView commit details -
The boolean database should not be set to true at the end of delete_o…
…ld_queries_in_DB(). The function can in any way not be called when database == false as this is an exit criterion for the database thread. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 812743c - Browse repository at this point
Copy the full SHA 812743cView commit details -
Move even more definitions from FTL.h into the respective headers.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 5c75fc3 - Browse repository at this point
Copy the full SHA 5c75fc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e30df58 - Browse repository at this point
Copy the full SHA e30df58View commit details -
Added more comments to dnsmasq-interface.c. Now almost every line is …
…commented. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 867e466 - Browse repository at this point
Copy the full SHA 867e466View commit details -
Merge pull request #610 from pi-hole/tweak/database_error_checking
Database error checking
Configuration menu - View commit details
-
Copy full SHA for ac1018a - Browse repository at this point
Copy the full SHA ac1018aView commit details
Commits on Jul 8, 2019
-
Simplify logic in detect_blocked_IP(), remove extra return statements…
… that are not needed. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for b3ad13f - Browse repository at this point
Copy the full SHA b3ad13fView commit details