Skip to content
Snippets Groups Projects
  1. Jan 04, 2018
  2. Dec 08, 2017
  3. Dec 07, 2017
  4. Dec 04, 2017
  5. Nov 28, 2017
  6. Nov 24, 2017
    • Marek Vavruša's avatar
      daemon/lua: fixed unused variables, whitespace, cleanup · 3162da83
      Marek Vavruša authored
      Also fixed improper promotion of `ffi` to global variable.
      
      ```
      $ luacheck --codes daemon/lua/
      Checking daemon/lua/config.lua                    OK
      Checking daemon/lua/kres-gen.lua                  OK
      Checking daemon/lua/kres.lua                      OK
      Checking daemon/lua/sandbox.lua                   OK
      Checking daemon/lua/trust_anchors.lua             OK
      Checking daemon/lua/zonefile.lua                  OK
      
      Total: 0 warnings / 0 errors in 6 files
      ```
      3162da83
    • Marek Vavruša's avatar
      added basic config test for consts, depend on knot >= 2.4, cleanup · b90e6c71
      Marek Vavruša authored
      The library now depends on libknot >= 2.4.0 (in Debian stable),
      this allows us to remove a dead code and sed-ing of the kres.lua
      
      Added a basic config tests to check that constants still work,
      and basic interface to rrsets still works after the change.
      b90e6c71
    • Marek Vavruša's avatar
      95a6fdf7
    • Marek Vavruša's avatar
      converted constant tables, support kres.type.TYPE1234 · 0ec11416
      Marek Vavruša authored
      The difficulty with using structs as constant tables is that access
      to non-existent fields throws an error. This is difficult to handle
      without wrapping every access in a pcall, for example in predict module:
      
      ```
      error: /usr/local/lib/kdns_modules/predict.lua:34: 'struct rr_type' has no member named 'TYPE65535'
      ```
      
      So I converted the constant tables into regular Lua tables,
      and added a metatable for RR types to allow looking up unnamed types,
      in the TYPE%d format. Looking up non-existent fields will now
      return nil instead of throwing an error.
      0ec11416
    • Marek Vavruša's avatar
      tests: fixed config tests locking up on error, added test for predict · 52d4f519
      Marek Vavruša authored
      The config tests locked up on error as if error was raised from the
      event callback, it would never reach the `quit()` statement, so
      server would never close on error.
      
      Added a script to make running these types of tests a little bit nicer
      and to allow concurrent execution of config tests.
      
      Added a test for the predict module, that fails on prediction
      of unknown types:
      
      ```
      error: /usr/local/lib/kdns_modules/predict.lua:34: 'struct rr_type' has no member named 'TYPE65535'
      ```
      52d4f519
  7. Nov 20, 2017
  8. Nov 02, 2017
  9. Nov 01, 2017
  10. Sep 11, 2017
  11. Sep 07, 2017
  12. Aug 03, 2017
    • Vladimír Čunát's avatar
      kr_rand_uint: nitpicks · c2dbf720
      Vladimír Čunát authored
      - the returned value is up to max-1 and not max (tiny bias)
      - improve efficiency slightly
      - unsigned -> uint32_t, as that's the range it supports (mostly equal)
      c2dbf720
  13. Aug 01, 2017
  14. Jul 11, 2017
    • Vladimír Čunát's avatar
      policy: follow RFC6303 more closely · bd3ba69b
      Vladimír Čunát authored
      In particular, try to make the locally-served zones valid,
      including SOA and NS in apex, empty non-terminal vs. NXDOMAIN, etc.
      I might've missed something, but it should certainly be closer to ideal.
      bd3ba69b
  15. Jul 07, 2017
  16. Jun 13, 2017
  17. Jun 01, 2017
  18. May 17, 2017
  19. Apr 05, 2017
  20. Mar 21, 2017