]> git.ipfire.org Git - thirdparty/suricata.git/commit
lua: convert dns function into suricata.dns lib
authorJason Ish <jason.ish@oisf.net>
Tue, 11 Mar 2025 22:52:09 +0000 (16:52 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Mar 2025 12:12:03 +0000 (13:12 +0100)
commit1206c1c5af95479e8fd32f199bc7bfd3bafc56de
tree8ad24826a5220389d37cf5b2c19c7bb9ea8276e9
parent90aab0d62fe74cd299af6d0182941798e863bb4e
lua: convert dns function into suricata.dns lib

Notable changes from the previous API:
- rcode will return the rcode as an integer
- rcode_string will return the string representation

Also fixes an issue where an rcode of 0 was returned as nil.

Ticket: #7602
rust/src/dns/lua.rs
src/detect-lua-extensions.c
src/output-lua.c
src/util-lua-builtins.c
src/util-lua-dns.c
src/util-lua-dns.h