diff options
author | Zach Loafman <zachary.loafman@isilon.com> | 2009-03-30 15:57:57 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-04-01 08:30:25 -0700 |
commit | afa71fbad9cbd8b1a6b68b9ba01936ad70ff25e5 (patch) | |
tree | efcb88b0db7812cc68f48613720528535fc0069d /source4/libcli/smb2/smb2.h | |
parent | 264b28ec0962c355ee90f9ac67fcf07cd84c5c7b (diff) | |
download | samba-afa71fbad9cbd8b1a6b68b9ba01936ad70ff25e5.tar.gz samba-afa71fbad9cbd8b1a6b68b9ba01936ad70ff25e5.tar.bz2 samba-afa71fbad9cbd8b1a6b68b9ba01936ad70ff25e5.zip |
s4:smb2: Add lease break support for SMB2.1
Add the structures and marshalling for the lease break variants of the
oplock break / oplock break ack messages.
Diffstat (limited to 'source4/libcli/smb2/smb2.h')
-rw-r--r-- | source4/libcli/smb2/smb2.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h index fd961ce5f3..3044623ae8 100644 --- a/source4/libcli/smb2/smb2.h +++ b/source4/libcli/smb2/smb2.h @@ -26,6 +26,7 @@ #include "libcli/raw/libcliraw.h" struct smb2_handle; +struct smb2_lease_break; /* information returned from the negotiate process @@ -73,6 +74,15 @@ struct smb2_transport { void *private_data; } oplock; + struct { + /* a lease break request handler */ + bool (*handler)(struct smb2_transport *transport, + const struct smb2_lease_break *lease_break, + void *private_data); + /* private data passed to the oplock handler */ + void *private_data; + } lease; + struct smbcli_options options; bool signing_required; @@ -271,6 +281,9 @@ struct smb2_request { #define SMB2_LEASE_HANDLE 0x02 #define SMB2_LEASE_WRITE 0x04 +/* SMB2 lease break flags */ +#define SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED 0x01 + /* SMB2 impersonation levels */ #define SMB2_IMPERSONATION_ANONYMOUS 0x00 #define SMB2_IMPERSONATION_IDENTIFICATION 0x01 |