summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-31 08:37:13 +0100
committerVolker Lendecke <vl@samba.org>2013-04-18 15:11:48 +0200
commit6c81893b342786d5f63aaa89e855e9378def50c3 (patch)
tree6efb3c0358392bef4ccf3f0bdcde1e15ae0f5e99 /source4/libcli/raw
parentf367d07f521b26cfb5813dd679a4e4883b69752f (diff)
downloadsamba-6c81893b342786d5f63aaa89e855e9378def50c3.tar.gz
samba-6c81893b342786d5f63aaa89e855e9378def50c3.tar.bz2
samba-6c81893b342786d5f63aaa89e855e9378def50c3.zip
s4:libcli/smb2: add support for SMB2 LEASES v2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/interfaces.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index c13475b440..fb73f26a42 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -64,8 +64,11 @@ struct smb2_lease_key {
struct smb2_lease {
struct smb2_lease_key lease_key;
uint32_t lease_state;
- uint32_t lease_flags; /* should be 0 */
+ uint32_t lease_flags;
uint64_t lease_duration; /* should be 0 */
+ /* only for v2 */
+ struct smb2_lease_key parent_lease_key;
+ uint16_t lease_epoch;
};
struct smb2_lease_break {
@@ -1743,6 +1746,7 @@ union smb_open {
NTTIME timewarp;
bool query_on_disk_id;
struct smb2_lease *lease_request;
+ struct smb2_lease *lease_request_v2;
struct GUID *app_instance_id;
@@ -1773,6 +1777,7 @@ union smb_open {
uint32_t maximal_access;
uint8_t on_disk_id[32];
struct smb2_lease lease_response;
+ struct smb2_lease lease_response_v2;
bool durable_open;
/* durable handle v2 */