]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smb2_server: add .need_session to smbd_smb2_dispatch_table
authorStefan Metzmacher <metze@samba.org>
Mon, 6 Aug 2012 08:02:54 +0000 (10:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Aug 2012 09:16:36 +0000 (11:16 +0200)
metze

source3/smbd/smb2_server.c

index 89728928503baa4d4e970aec9bf4fc6f029af7bb..d878bd2a9b3b8b0a3b976980ea7e6fda301314f9 100644 (file)
@@ -35,6 +35,7 @@
 static const struct smbd_smb2_dispatch_table {
        uint16_t opcode;
        const char *name;
+       bool need_session;
 } smbd_smb2_table[] = {
 #define _OP(o) .opcode = o, .name = #o
        {
@@ -43,38 +44,53 @@ static const struct smbd_smb2_dispatch_table {
                _OP(SMB2_OP_SESSSETUP),
        },{
                _OP(SMB2_OP_LOGOFF),
+               .need_session = true,
        },{
                _OP(SMB2_OP_TCON),
+               .need_session = true,
        },{
                _OP(SMB2_OP_TDIS),
+               .need_session = true,
        },{
                _OP(SMB2_OP_CREATE),
+               .need_session = true,
        },{
                _OP(SMB2_OP_CLOSE),
+               .need_session = true,
        },{
                _OP(SMB2_OP_FLUSH),
+               .need_session = true,
        },{
                _OP(SMB2_OP_READ),
+               .need_session = true,
        },{
                _OP(SMB2_OP_WRITE),
+               .need_session = true,
        },{
                _OP(SMB2_OP_LOCK),
+               .need_session = true,
        },{
                _OP(SMB2_OP_IOCTL),
+               .need_session = true,
        },{
                _OP(SMB2_OP_CANCEL),
        },{
                _OP(SMB2_OP_KEEPALIVE),
        },{
                _OP(SMB2_OP_FIND),
+               .need_session = true,
        },{
                _OP(SMB2_OP_NOTIFY),
+               .need_session = true,
        },{
                _OP(SMB2_OP_GETINFO),
+               .need_session = true,
        },{
                _OP(SMB2_OP_SETINFO),
+               .need_session = true,
        },{
                _OP(SMB2_OP_BREAK),
+               .need_session = true,
        }
 };