]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove unused ipv6only feature check
authorNicki Křížek <nicki@isc.org>
Tue, 2 Dec 2025 16:05:14 +0000 (17:05 +0100)
committerNicki Křížek <nicki@isc.org>
Mon, 8 Dec 2025 17:07:41 +0000 (18:07 +0100)
There isn't any system test that uses this feature check.

bin/tests/system/feature-test.c

index 73d0e73e660490bf893ecf9831a37981da943675..75c940ad4610514add7be23dfadc66f9083358ab 100644 (file)
@@ -52,7 +52,6 @@ usage(void) {
        fprintf(stderr, "\t--have-geoip2\n");
        fprintf(stderr, "\t--have-json-c\n");
        fprintf(stderr, "\t--have-libxml2\n");
-       fprintf(stderr, "\t--ipv6only=no\n");
        fprintf(stderr, "\t--md5\n");
        fprintf(stderr, "\t--rsasha1\n");
        fprintf(stderr, "\t--tsan\n");
@@ -207,25 +206,6 @@ main(int argc, char **argv) {
                return 0;
        }
 
-       if (strcmp(argv[1], "--ipv6only=no") == 0) {
-#if defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY)
-               int s;
-               int n = -1;
-               int v6only = -1;
-               socklen_t len = sizeof(v6only);
-
-               s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
-               if (s >= 0) {
-                       n = getsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
-                                      (void *)&v6only, &len);
-                       close(s);
-               }
-               return (n == 0 && v6only == 0) ? 0 : 1;
-#else  /* defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY) */
-               return 1;
-#endif /* defined(IPPROTO_IPV6) && defined(IPV6_V6ONLY) */
-       }
-
        if (strcasecmp(argv[1], "--rsasha1") == 0) {
                if (!dst_algorithm_supported(DST_ALG_RSASHA1)) {
                        return 1;