diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 17:47:29 +0000 |
commit | 4f5791ebd03eaec1c7da0865a383175b05102712 (patch) | |
tree | 8ce7b00f7a76baa386372422adebbe64510812d4 /librpc/idl/smb2_lease_struct.idl | |
parent | Initial commit. (diff) | |
download | samba-4f5791ebd03eaec1c7da0865a383175b05102712.tar.xz samba-4f5791ebd03eaec1c7da0865a383175b05102712.zip |
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'librpc/idl/smb2_lease_struct.idl')
-rw-r--r-- | librpc/idl/smb2_lease_struct.idl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/librpc/idl/smb2_lease_struct.idl b/librpc/idl/smb2_lease_struct.idl new file mode 100644 index 0000000..5ccd8a3 --- /dev/null +++ b/librpc/idl/smb2_lease_struct.idl @@ -0,0 +1,34 @@ +#include "idl_types.h" + +/* + miscellaneous IDL structures +*/ + +[ + pointer_default(unique) +] +interface smb2_lease_struct +{ + /* + * SMB2 lease structure (per MS-SMB2 2.2.13) + */ + typedef [public] struct { + hyper data[2]; + } smb2_lease_key; + + typedef [public,bitmap32bit] bitmap { + SMB2_LEASE_READ = 0x01, + SMB2_LEASE_HANDLE = 0x02, + SMB2_LEASE_WRITE = 0x04 + } smb2_lease_state; + + typedef [public] struct { + smb2_lease_key lease_key; + smb2_lease_state lease_state; + uint32 lease_flags; + hyper lease_duration; /* should be 0 */ + smb2_lease_key parent_lease_key; + uint16 lease_version; + uint16 lease_epoch; + } smb2_lease; +};
\ No newline at end of file |