libcli: define structure for SMB2 Break
authorStefan Metzmacher <metze@samba.org>
Fri, 18 Apr 2008 20:19:08 +0000 (22:19 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Apr 2008 23:54:44 +0000 (01:54 +0200)
metze
(This used to be commit 5ffea702c3a1c92a797afab1a3cadf2f2a18729f)

source4/libcli/raw/interfaces.h

index cf5a3aa25e9e8174053b24ba262b20d88dd483cb..bad37437216edb416d291a0685d4502471cc8b46 100644 (file)
@@ -1862,7 +1862,8 @@ enum smb_lock_level {
        RAW_LOCK_LOCK,
        RAW_LOCK_UNLOCK,
        RAW_LOCK_LOCKX,
-       RAW_LOCK_SMB2
+       RAW_LOCK_SMB2,
+       RAW_LOCK_SMB2_BREAK
 };
 
 /* the generic interface is defined to be equal to the lockingX interface */
@@ -1925,6 +1926,20 @@ union smb_lock {
                        uint16_t unknown1;
                } out;
        } smb2;
+
+       /* SMB2 Break */
+       struct smb2_break {
+               enum smb_lock_level level;
+               struct {
+                       union smb_handle file;
+
+                       /* static body buffer 24 (0x18) bytes */
+                       uint8_t oplock_level;
+                       uint8_t reserved;
+                       uint32_t reserved2;
+                       /* struct smb2_handle handle; */
+               } in, out;
+       } smb2_break;
 };