Skip to content
Snippets Groups Projects
  1. Jun 12, 2023
  2. Jul 26, 2022
  3. May 13, 2022
  4. Mar 21, 2022
  5. Dec 22, 2021
    • Vladimír Čunát's avatar
      daemon/zimport: rewrite, support ZONEMD · d7a065c5
      Vladimír Čunát authored
      The approach of the code was rather hacky, simulating some packets
      arriving from upstream and making the module stack CONSUME that.
      Instead we take a direct approach now: use the simplified validator API
      and then insert into cache directly.
      
      One effect is improved performance, and consequently roughly halving
      the lag which happens when prefill module invokes this.
      (With root zone the lag goes down to 0.1 s from over 0.2 s,
       on my relatively fast CPU.  Fortunately it's just once a day.)
      Verified
      d7a065c5
  6. Dec 21, 2021
    • Tomas Krizek's avatar
      policy: log selected actions · 46158186
      Tomas Krizek authored
      The following actions will now be logged in debug level (or request
      tracing): ANSWER, DENY, DENY_MSG, DROP, REFUSE, TC
      
      This can be useful for RPZ and other policy debugging.
      
      Purposefully ommitted actions:
      PASS - since it's the same as normal processing
      REROUTE - the action itself comes from renumber module
      STUB,FORWARD,TLS_FORWARD - this could be more confusing than useful
        (e.g. when response comes from cache)
      Verified
      46158186
    • Tomas Krizek's avatar
  7. Dec 20, 2021
  8. Nov 23, 2021
  9. Aug 10, 2021
    • Vladimír Čunát's avatar
      adjust RR-dumping style a little · 0555828e
      Vladimír Čunát authored and Tomas Krizek's avatar Tomas Krizek committed
      The former "default" dumping style isn't really used anywhere in Knot.
      The only visible difference is that RRSIGs are now logged *without*
      replacing their TTLs by the original non-decremented TTL values.
      That can avoid some confusion when reading debug logs.
      (Those original TTLs are still shown a bit further on each line.)
      Verified
      0555828e
  10. Jul 29, 2021
  11. Jul 16, 2021
  12. Jul 15, 2021
  13. May 25, 2021
  14. May 24, 2021
    • Tomas Krizek's avatar
      daemon/http: expose HTTP headers to kr_request · f4a1df9b
      Tomas Krizek authored
      Add HTTP headers to an optional kr_request.qsource.headers structure.
      Headers are stored as name, value string pairs.
      
      The following snippet can be used to access the headers in lua modules:
      
      ```
      if (req.qsource.headers ~= nil) then
      	for i = 1, tonumber(req.qsource.headers.len) do
      		local name = ffi.string(req.qsource.headers.at[i - 1].name)
      		local value = ffi.string(req.qsource.headers.at[i - 1].value)
      		print(name, value)
      	end
      end
      ```
      
      Fixes #616
      Verified
      f4a1df9b
  15. Feb 11, 2021
  16. Dec 31, 2020
  17. Nov 10, 2020
    • Vladimír Čunát's avatar
      XDP: add backend parts · ddc67e7b
      Vladimír Čunát authored
      Logging strings: I originally wanted to have four chars inside [],
      but it doesn't really matter in these cases where logs don't happen
      within a request, so "[xdp]" won due to uniformity and simplicity.
      Verified
      ddc67e7b
  18. Oct 26, 2020
  19. Oct 21, 2020
  20. Sep 10, 2020
  21. Sep 07, 2020
  22. Aug 07, 2020
  23. Aug 05, 2020
    • Vladimír Čunát's avatar
      daemon/lua: get rid of __engine symbol in lua · b7629c55
      Vladimír Čunát authored
      In particular this gets rid of last light user data inside kresd.
      
      It was still causing problems on some systems, for example Debian Sid.
      The error was the same: "bad light userdata pointer" from luajit,
      but note that the problem can still be triggered by lua libraries,
      e.g. cqueues.
      Verified
      b7629c55
  24. May 13, 2020
  25. Mar 25, 2020
  26. Feb 25, 2020
  27. Jan 29, 2020
  28. Jan 17, 2020
  29. Dec 18, 2019
  30. Dec 04, 2019
    • Vladimír Čunát's avatar
      iterate: better efficiency on huge RRsets · edb8ffef
      Vladimír Čunát authored and Tomas Krizek's avatar Tomas Krizek committed
      - written relatively defensively - act OK even if the API
        isn't used in an ideal way
      - CI lint:scan-build: bump the error count;
        It's only another instance of the mis-detected array_push().
      - the removed stale note in modules/meson.build isn't really related
      Verified
      edb8ffef
  31. Nov 28, 2019