From: Vladimír Čunát Date: Fri, 13 Apr 2018 16:09:31 +0000 (+0200) Subject: lua bindings: complete knot_pkt_t X-Git-Tag: v2.4.0~42^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bc9e15eb9074188e3b3112f8a118e18c9d1d70c;p=thirdparty%2Fknot-resolver.git lua bindings: complete knot_pkt_t We don't need the end, but I prefer to get rid of the exception, as we now require libknot > 2.6 anyway and it only implies adding a few more binding lines. --- diff --git a/daemon/lua/kres-gen.lua b/daemon/lua/kres-gen.lua index 35d5bc640..023bbc6cd 100644 --- a/daemon/lua/kres-gen.lua +++ b/daemon/lua/kres-gen.lua @@ -33,6 +33,15 @@ typedef struct { uint16_t pos; uint16_t count; } knot_pktsection_t; +struct knot_compr { + uint8_t *wire; + knot_rrinfo_t *rrinfo; + struct { + uint16_t pos; + uint8_t labels; + } suffix; +}; +typedef struct knot_compr knot_compr_t; struct knot_pkt { uint8_t *wire; size_t size; @@ -54,7 +63,7 @@ struct knot_pkt { knot_rrinfo_t *rr_info; knot_rrset_t *rr; knot_mm_t mm; - char _stub[]; /* TMP: do NOT replace yet (changed in libknot-2.6.0) */ + knot_compr_t compr; }; typedef struct knot_pkt knot_pkt_t; typedef struct { diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index 117f3e909..8132430d4 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -48,6 +48,8 @@ typedef void (*trace_callback_f)(struct kr_request *); struct knot_rdataset knot_rrset_t knot_pktsection_t + struct knot_compr + knot_compr_t struct knot_pkt knot_pkt_t # generics