diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/lua/kres-gen.lua | 1 | ||||
-rwxr-xr-x | daemon/lua/kres-gen.sh | 1 | ||||
-rw-r--r-- | daemon/lua/kres.lua | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/daemon/lua/kres-gen.lua b/daemon/lua/kres-gen.lua index eeb8ff7c..5e40a610 100644 --- a/daemon/lua/kres-gen.lua +++ b/daemon/lua/kres-gen.lua @@ -308,6 +308,7 @@ int kr_straddr_subnet(void *, const char *); int kr_bitcmp(const char *, const char *, int); int kr_family_len(int); struct sockaddr *kr_straddr_socket(const char *, int); +int kr_straddr_split(const char *, char * restrict, uint16_t *); int kr_ranked_rrarray_add(ranked_rr_array_t *, const knot_rrset_t *, uint8_t, _Bool, uint32_t, knot_mm_t *); void kr_qflags_set(struct kr_qflags *, struct kr_qflags); void kr_qflags_clear(struct kr_qflags *, struct kr_qflags); diff --git a/daemon/lua/kres-gen.sh b/daemon/lua/kres-gen.sh index 538fe239..ea0f7af6 100755 --- a/daemon/lua/kres-gen.sh +++ b/daemon/lua/kres-gen.sh @@ -162,6 +162,7 @@ EOF kr_bitcmp kr_family_len kr_straddr_socket + kr_straddr_split kr_ranked_rrarray_add kr_qflags_set kr_qflags_clear diff --git a/daemon/lua/kres.lua b/daemon/lua/kres.lua index 8cb00461..6e48026c 100644 --- a/daemon/lua/kres.lua +++ b/daemon/lua/kres.lua @@ -239,7 +239,7 @@ local timeval_t = ffi.typeof('struct timeval') -- Metatype for sockaddr local addr_buf = ffi.new('char[16]') -local str_addr_buf = ffi.new('char[46 + 1 + 6 + 1]') -- IPv6 + #port + \0 +local str_addr_buf = ffi.new('char[46 + 1 + 6 + 1]') -- INET6_ADDRSTRLEN + #port + \0 local str_addr_buf_len = ffi.sizeof(str_addr_buf) local sockaddr_t = ffi.typeof('struct sockaddr') ffi.metatype( sockaddr_t, { |