コード例 #1
0
        public SmbWriteMpxSecondaryResponsePacket CreateWriteMpxSecondaryResponse(
            CifsServerPerConnection connection,
            SmbWriteMpxSecondaryRequestPacket request)
        {
            SmbWriteMpxSecondaryResponsePacket response = new SmbWriteMpxSecondaryResponsePacket();
            SmbHeader smbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            if ((smbHeader.Flags2 & SmbFlags2.SMB_FLAGS2_NT_STATUS) == SmbFlags2.SMB_FLAGS2_NT_STATUS)
            {
                smbHeader.Status = (uint)NtStatus.STATUS_NOT_IMPLEMENTED;
            }
            else
            {
                SmbStatus smbStatus = new SmbStatus();
                smbStatus.ErrorClass = SmbErrorClass.ERRDOS;
                smbStatus.Reserved = 0;
                smbStatus.ErrorCode = (ushort)SmbErrorCodeOfERRDOS.ERRbadfunc;
                smbHeader.Status = smbStatus;

            }
            response.SmbHeader = smbHeader;

            return response;
        }
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbWriteMpxSecondaryResponsePacket(SmbWriteMpxSecondaryResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
 }
コード例 #3
0
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbWriteMpxSecondaryResponsePacket(SmbWriteMpxSecondaryResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
 }