/** * * @return a cancel request */ @Override public CommonServerMessageBlockRequest createCancel () { return new SmbComNtCancel(getConfig(), (int) getMid()); }
/** * @param config */ protected SmbComNtCancel ( Configuration config, int mid ) { super(config, SMB_COM_NT_CANCEL); setMid(mid); }
/** * * @param buffer * @param bufferIndex * @param len * @throws IOException */ public FileNotifyInformationImpl ( byte[] buffer, int bufferIndex, int len ) throws IOException { decode(buffer, bufferIndex, len); }
@Override protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException { int start = bufferIndex; int elemStart = start; FileNotifyInformationImpl i = new FileNotifyInformationImpl(); bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i); while ( i.getNextEntryOffset() > 0 ) { bufferIndex = elemStart + i.getNextEntryOffset(); elemStart = bufferIndex; i = new FileNotifyInformationImpl(); bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i); } return bufferIndex - start; }
int start = dstIndex; if ( this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY ) { dst[ dstIndex++ ] = this.maxSetupCount; SMBUtil.writeInt4(this.totalDataCount, dst, dstIndex); dstIndex += 4; if ( this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.maxParameterCount, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4( ( this.parameterCount == 0 ? 0 : this.parameterOffset ), dst, dstIndex); dstIndex += 4; if ( this.getCommand() == SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.parameterDisplacement, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4( ( this.dataCount == 0 ? 0 : this.dataOffset ), dst, dstIndex); dstIndex += 4; if ( this.getCommand() == SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.dataDisplacement, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt2(this.function, dst, dstIndex); dstIndex += 2; dstIndex += writeSetupWireFormat(dst, dstIndex);
@Override public String toString () { return new String("NtTransQuerySecurityResponse[" + super.toString() + "]"); } }
@Override public String toString () { return new String( "NtTransQuerySecurityDesc[" + super.toString() + ",fid=0x" + Hexdump.toHexString(this.fid, 4) + ",securityInformation=0x" + Hexdump.toHexString(this.securityInformation, 8) + "]"); } }
@Override protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) { int start = bufferIndex; if ( this.getErrorCode() != 0 ) return 4; try { this.securityDescriptor = new SecurityDescriptor(); bufferIndex += this.securityDescriptor.decode(buffer, bufferIndex, len); } catch ( IOException ioe ) { throw new RuntimeCIFSException(ioe.getMessage()); } return bufferIndex - start; }
/** * * @return a cancel request */ @Override public CommonServerMessageBlockRequest createCancel () { return new SmbComNtCancel(getConfig(), (int) getMid()); }
@Override protected int readParametersWireFormat ( byte[] buffer, int bufferIndex, int len ) throws SMBProtocolDecodingException { int start = bufferIndex; int elemStart = start; FileNotifyInformationImpl i = new FileNotifyInformationImpl(); bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i); while ( i.getNextEntryOffset() > 0 ) { bufferIndex = elemStart + i.getNextEntryOffset(); elemStart = bufferIndex; i = new FileNotifyInformationImpl(); bufferIndex += i.decode(buffer, bufferIndex, len); this.notifyInformation.add(i); } return bufferIndex - start; }
int start = dstIndex; if ( this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY ) { dst[ dstIndex++ ] = this.maxSetupCount; SMBUtil.writeInt4(this.totalDataCount, dst, dstIndex); dstIndex += 4; if ( this.getCommand() != SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.maxParameterCount, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4( ( this.parameterCount == 0 ? 0 : this.parameterOffset ), dst, dstIndex); dstIndex += 4; if ( this.getCommand() == SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.parameterDisplacement, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt4( ( this.dataCount == 0 ? 0 : this.dataOffset ), dst, dstIndex); dstIndex += 4; if ( this.getCommand() == SMB_COM_NT_TRANSACT_SECONDARY ) { SMBUtil.writeInt4(this.dataDisplacement, dst, dstIndex); dstIndex += 4; SMBUtil.writeInt2(this.function, dst, dstIndex); dstIndex += 2; dstIndex += writeSetupWireFormat(dst, dstIndex);
@Override public String toString () { return new String("NtTransQuerySecurityResponse[" + super.toString() + "]"); } }
@Override public String toString () { return new String( "NtTransNotifyChange[" + super.toString() + ",fid=0x" + Hexdump.toHexString(this.fid, 4) + ",filter=0x" + Hexdump.toHexString(this.completionFilter, 4) + ",watchTree=" + this.watchTree + "]"); } }
/** * @param config */ protected SmbComNtCancel ( Configuration config, int mid ) { super(config, SMB_COM_NT_CANCEL); setMid(mid); }
/** * * @param buffer * @param bufferIndex * @param len * @throws IOException */ public FileNotifyInformationImpl ( byte[] buffer, int bufferIndex, int len ) throws IOException { decode(buffer, bufferIndex, len); }
@Override protected int readDataWireFormat ( byte[] buffer, int bufferIndex, int len ) { int start = bufferIndex; if ( this.getErrorCode() != 0 ) return 4; try { this.securityDescriptor = new SecurityDescriptor(); bufferIndex += this.securityDescriptor.decode(buffer, bufferIndex, len); } catch ( IOException ioe ) { throw new RuntimeCIFSException(ioe.getMessage()); } return bufferIndex - start; }
@Override public String toString () { return new String("NtTransQuerySecurityResponse[" + super.toString() + "]"); } }
@Override public String toString () { return new String( "NtTransNotifyChange[" + super.toString() + ",fid=0x" + Hexdump.toHexString(this.fid, 4) + ",filter=0x" + Hexdump.toHexString(this.completionFilter, 4) + ",watchTree=" + this.watchTree + "]"); } }
@Override public String toString () { return new String("NtTransQuerySecurityResponse[" + super.toString() + "]"); } }
@Override public String toString () { return new String( "NtTransQuerySecurityDesc[" + super.toString() + ",fid=0x" + Hexdump.toHexString(this.fid, 4) + ",securityInformation=0x" + Hexdump.toHexString(this.securityInformation, 8) + "]"); } }