]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: Set default Netbios RFC1001 server name to hostname in UNC
authorPali Rohár <pali@kernel.org>
Sun, 27 Oct 2024 11:10:52 +0000 (12:10 +0100)
committerSteve French <stfrench@microsoft.com>
Wed, 26 Mar 2025 19:51:50 +0000 (14:51 -0500)
commitbe786e509c1af9b2dcf25c3d601f05c8c251f482
tree0e70fc3dbeef4385e69fceaa5d85d1f3060d200b
parent4e7f1644f2ac6d01dc584f6301c3b1d5aac4eaef
cifs: Set default Netbios RFC1001 server name to hostname in UNC

Windows SMB servers (including SMB2+) which are working over RFC1001
require that Netbios server name specified in RFC1001 Session Request
packet is same as the UNC host name. Netbios server name can be already
specified manually via -o servern= option.

With this change the RFC1001 server name is set automatically by extracting
the hostname from the mount source.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c