cifs: Save TTL value when parsing DFS referrals

This will be needed by DFS cache.

Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Paulo Alcantara 2018-11-14 15:38:51 -02:00 committed by Steve French
parent 5fc7fcd054
commit e7b602f437
2 changed files with 3 additions and 0 deletions

View File

@ -1508,6 +1508,7 @@ struct dfs_info3_param {
int ref_flag;
char *path_name;
char *node_name;
int ttl;
};
/*

View File

@ -740,6 +740,8 @@ parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
goto parse_DFS_referrals_exit;
}
node->ttl = le32_to_cpu(ref->TimeToLive);
ref++;
}