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:
parent
5fc7fcd054
commit
e7b602f437
@ -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,
|
|||||||
goto parse_DFS_referrals_exit;
|
goto parse_DFS_referrals_exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node->ttl = le32_to_cpu(ref->TimeToLive);
|
||||||
|
|
||||||
ref++;
|
ref++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user