cifs: fix check of dfs interlinks
authorPaulo Alcantara <pc@cjr.nz>
Mon, 14 Jun 2021 15:58:20 +0000 (12:58 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commit889c2a700799f3b6f82210925e1faf4a9b833c4a
tree18e5679e56ea0d91d1cb216fa31abb4a704c7fc4
parent0475c3655e6ebd1d6d6f0e705eba97fce39a08e3
cifs: fix check of dfs interlinks

Interlink is a special type of DFS link that resolves to a different
DFS domain-based namespace.  To determine whether it is an interlink
or not, check if ReferralServers and StorageServers bits are set to 1
and 0 respectively in ReferralHeaderFlags, as specified in MS-DFSC
3.1.5.4.5 Determining Whether a Referral Response is an Interlink.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c