diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-07-09 18:40:52 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-08-14 10:36:11 +0200 |
commit | 998cd5fbe03648e49dc230d3c276e5b55b5f3688 (patch) | |
tree | 7cf79bc2caafd28e7819a900fe7a91c235813e77 /modules/detect_time_skew | |
parent | knot_edns_* -> knot_pkt_ (diff) | |
download | knot-resolver-998cd5fbe03648e49dc230d3c276e5b55b5f3688.tar.xz knot-resolver-998cd5fbe03648e49dc230d3c276e5b55b5f3688.zip |
lua: most changes needed for knot 2.7
When at it, switch to generating the libzscanner bindings.
Diffstat (limited to 'modules/detect_time_skew')
-rw-r--r-- | modules/detect_time_skew/detect_time_skew.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/detect_time_skew/detect_time_skew.lua b/modules/detect_time_skew/detect_time_skew.lua index 2dd900af..90ff5642 100644 --- a/modules/detect_time_skew/detect_time_skew.lua +++ b/modules/detect_time_skew/detect_time_skew.lua @@ -1,6 +1,5 @@ -- Module interface local ffi = require('ffi') -local knot = ffi.load(libknot_SONAME) local mod = {} local event_id = nil @@ -26,8 +25,8 @@ local function check_time_callback(pkt, req) if rr.type == kres.type.RRSIG then for k = 0, rr.rrs.rr_count - 1 do seen_rrsigs = seen_rrsigs + 1 - inception = knot.knot_rrsig_sig_inception(rr.rrs, k) - expiration = knot.knot_rrsig_sig_expiration(rr.rrs, k) + inception = ffi.C.kr_rrsig_sig_inception(rr.rrs, k) + expiration = ffi.C.kr_rrsig_sig_expiration(rr.rrs, k) if now > expiration then -- possitive value = in the future time_diff = now - expiration |