]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/param: allow smb_transport[s]_parse() to handle 'quic'
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Apr 2025 15:04:13 +0000 (17:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Jul 2025 08:59:37 +0000 (08:59 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/param/loadparm.c

index 35a718441dee2ab7b404233fc2fe8f09b33dd536..d6553d89011efeb7dc32c80a1718828fe18e84b1 100644 (file)
@@ -1368,6 +1368,9 @@ bool smb_transport_parse(const char *_value, struct smb_transport *_t)
        } else if (strcmp("nbt", value) == 0) {
                t.type = SMB_TRANSPORT_TYPE_NBT;
                t.port = 139;
+       } else if (strcmp("quic", value) == 0) {
+               t.type = SMB_TRANSPORT_TYPE_QUIC;
+               t.port = 443;
        } else if (vparam != NULL) {
                /*
                 * a port number should not have