Commit e7b602f4 authored by Paulo Alcantara's avatar Paulo Alcantara Committed by Steve French

cifs: Save TTL value when parsing DFS referrals

This will be needed by DFS cache.
Signed-off-by: default avatarPaulo Alcantara <palcantara@suse.de>
Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 5fc7fcd0
...@@ -1508,6 +1508,7 @@ struct dfs_info3_param { ...@@ -1508,6 +1508,7 @@ struct dfs_info3_param {
int ref_flag; int ref_flag;
char *path_name; char *path_name;
char *node_name; char *node_name;
int ttl;
}; };
/* /*
......
...@@ -740,6 +740,8 @@ parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size, ...@@ -740,6 +740,8 @@ parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
goto parse_DFS_referrals_exit; goto parse_DFS_referrals_exit;
} }
node->ttl = le32_to_cpu(ref->TimeToLive);
ref++; ref++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment