summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2024-07-10 16:38:26 +0200
committerOto Šťáva <oto.stava@nic.cz>2024-07-11 13:51:45 +0200
commitd068a95304a57306b732f45a5105be0357886f7c (patch)
tree6905f5d3d1b211ee6d51c1a358ca9efc8894776f /lib
parent.gitlab-ci: use newer Knot for make-archive (diff)
downloadknot-resolver-d068a95304a57306b732f45a5105be0357886f7c.tar.xz
knot-resolver-d068a95304a57306b732f45a5105be0357886f7c.zip
drop libknot <=3.2.x support
Diffstat (limited to 'lib')
-rw-r--r--lib/resolve.c4
-rw-r--r--lib/utils.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/lib/resolve.c b/lib/resolve.c
index ec00b215..4730f105 100644
--- a/lib/resolve.c
+++ b/lib/resolve.c
@@ -246,11 +246,7 @@ static int pkt_padding(knot_pkt_t *packet, int32_t padding)
if (padding == -1) { /* use the default padding policy from libknot */
const size_t block_size = knot_wire_get_qr(packet->wire)
? KNOT_EDNS_ALIGNMENT_RESPONSE_DEFAULT
- #if KNOT_VERSION_HEX < 0x030200
- : KNOT_EDNS_ALIGNMENT_QUERY_DEFALT;
- #else
: KNOT_EDNS_ALIGNMENT_QUERY_DEFAULT;
- #endif
pad_bytes = knot_edns_alignment_size(packet->size, knot_rrset_size(opt_rr),
block_size);
}
diff --git a/lib/utils.c b/lib/utils.c
index 2a0635e0..d04f5467 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -1198,11 +1198,7 @@ char *kr_pkt_text(const knot_pkt_t *pkt)
const knot_dump_style_t KR_DUMP_STYLE_DEFAULT = { /* almost all = false, */
.show_ttl = true,
-#if KNOT_VERSION_HEX >= 0x030200
.human_timestamp = true,
-#else
- .human_tmstamp = true,
-#endif
};
char *kr_rrset_text(const knot_rrset_t *rr)