]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
addns: Move DNS hand-marshalling smbtorture4
authorVolker Lendecke <vl@samba.org>
Sun, 14 Jun 2026 07:04:10 +0000 (09:04 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 3 Jul 2026 09:13:05 +0000 (09:13 +0000)
Move it out of production code.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Jul  3 09:13:05 UTC 2026 on atb-devel-224

lib/addns/wscript_build
source4/torture/dns/dns.h [moved from lib/addns/dns.h with 100% similarity]
source4/torture/dns/dnserr.h [moved from lib/addns/dnserr.h with 100% similarity]
source4/torture/dns/dnsmarshall.c [moved from lib/addns/dnsmarshall.c with 100% similarity]
source4/torture/dns/dnsrecord.c [moved from lib/addns/dnsrecord.c with 100% similarity]
source4/torture/dns/dnssock.c [moved from lib/addns/dnssock.c with 100% similarity]
source4/torture/dns/internal_dns.c
source4/torture/dns/wscript_build

index 662187f37ac985bb483c9d614fec93a2de6de2eb..7fc4d16c3108774b1231420987f66b6e37de820d 100644 (file)
@@ -3,11 +3,8 @@
 bld.SAMBA_LIBRARY('addns',
                    source='''
                        dnsquery.c
-                       dnsrecord.c
-                       dnssock.c
-                       dnsmarshall.c
                        dnsquery_srv.c
                    ''',
-                   public_deps='samba-util gensec ndr resolv dns_lookup',
+                   public_deps='dns_lookup',
                    private_library=True,
                    vars=locals())
similarity index 100%
rename from lib/addns/dns.h
rename to source4/torture/dns/dns.h
index fa42e60fa4b01e1c8699789432e36d9febba5927..794510019f9398473ab92f11d59be69ad6b8b9c4 100644 (file)
@@ -20,7 +20,7 @@
 #include "includes.h"
 #include "torture/smbtorture.h"
 #include <talloc.h>
-#include "lib/addns/dns.h"
+#include "dns.h"
 
 static struct dns_connection *setup_connection(struct torture_context *tctx)
 {
index 0b40e03e3702a0ab2e07db83cca2ef4eae942be4..467eb1330f8373963c65faadce11b4916ebc1590 100644 (file)
@@ -11,7 +11,7 @@ if bld.AD_DC_BUILD_IS_ENABLED():
                )
 
        bld.SAMBA_MODULE('TORTURE_INTERNAL_DNS',
-               source='internal_dns.c',
+               source='internal_dns.c dnsmarshall.c dnsrecord.c dnssock.c',
                subsystem='smbtorture',
                init_function='torture_internal_dns_init',
                deps='torture talloc torturemain',