Skip to content
Snippets Groups Projects
  1. Dec 22, 2016
  2. Dec 19, 2016
    • Vladimír Čunát's avatar
      allow generating most cdefs for lua · 06b0d3d4
      Vladimír Čunát authored and Ondřej Surý's avatar Ondřej Surý committed
      Motivation: maintaining these by hand in kres.lua is tricky, as just
      inserting or reordering the structures can do anything and isn't
      detected in general.  For example, `rr_array_t::at` has always
      "missed a star".
      
      A couple libknot structure fields have apparently changed name since
      the old definitions were written; in most cases I renamed them in *.lua.
      
      The file daemon/lua/kres-gen.lua will be regenerated only if explicitly
      deleted.  That requires building with debug symbols and gdb on $PATH.
      06b0d3d4
  3. Dec 14, 2016
  4. Dec 13, 2016
  5. Dec 12, 2016
  6. Dec 09, 2016
  7. Dec 08, 2016
  8. Dec 07, 2016
  9. Dec 06, 2016
  10. Dec 05, 2016
  11. Nov 29, 2016
  12. Nov 28, 2016
  13. Nov 22, 2016
    • Vladimír Čunát's avatar
      lib/root-hints.inc: improve regeneration safeguards · 0222ae49
      Vladimír Čunát authored
      - Drop all make dependencies, so it's only generated when the file
        goes missing (i.e. was explicitly deleted).
      - Add checks into the generator to avoid producing empty strings on
        failures.  It compiled correctly and wasn't easy to debug.
      0222ae49
  14. Nov 14, 2016
  15. Nov 10, 2016
  16. Nov 08, 2016
    • Vladimír Čunát's avatar
      layer: refactor and better describe the API · cc47973e
      Vladimír Čunát authored
      - The API and ABI for modules changes slightly (details below).
        KR_MODULE_API is bumped to avoid loading incompatible code.
        We have bumped libkres ABIVER since the last release 1.1.1,
        so leaving that one intact.
      
      - Make KR_STATE_YIELD not reuse 0 value anymore.
        It's easy to e.g. return kr_ok() by mistake.
      - struct kr_layer_t:
        * ::mm was unused, uninitialized, etc.
        * Make ::state an int, as it was everywhere else.
        * void *data was ugly and always containing struct kr_request *
      - struct kr_layer_api:
        * Drop the void* parameter from ::begin, as it was only used
          for the request which is available as ctx->req anyway
          (formerly ctx->data).
        * Drop ::fail.  It wasn't even called.  Modules can watch for
          KR_STATE_FAIL in ::finish.
      - Document the apparent meaning of the layer interface, deduced mainly
        from the way it's used in the code.  Caveats:
        * enum knot_layer_state handling seems to assume that it holds exactly
          one of the possibilities at a time.  The cookie module does NOT
          follow that (intentionally), apparently depending on the exact
          implementation of the handling at that moment.  It feels fragile.
        * I was unable to deduce a plausible description of when ::reset is
          called.  It's practically unused in modules, too.
      cc47973e
    • Vladimír Čunát's avatar
      layer: rename knot_ identifiers that are private now · 4ad98bff
      Vladimír Čunát authored
      It causes lots of line changes, but it would be confusing to keep the
      current state over long term.
      4ad98bff
  17. Nov 02, 2016
  18. Oct 24, 2016
  19. Oct 20, 2016
  20. Oct 11, 2016
  21. Sep 08, 2016
  22. Sep 05, 2016
    • Marek Vavruša's avatar
      daemon/worker: retransmit based on current score · 1a568228
      Marek Vavruša authored
      if the score is known (and not glued), the retry
      rate is <avg(rtt), 250ms>
      
      if the NS score is unknown or worse than 250ms,
      it is always retried at this rate
      
      all other servers in the list use default rate
      1a568228
    • Marek Vavruša's avatar
      lib/nsrep: respect -DFAVOUR_IPV6=X · 5013e18b
      Marek Vavruša authored
      maintainer may wish to choose neutral or even
      more favoured server selection of IPv6 servers.
      
      -DFAVOUR_IPV6=0 makes neutral server selection
      -DFAVOUR_IPV6=40 gives IPv6 40ms better chance
      5013e18b
  23. Aug 25, 2016
  24. Aug 24, 2016