1 18 19 package jcifs.smb; 20 21 abstract class SmbComNtTransactionResponse extends SmbComTransactionResponse { 22 23 SmbComNtTransactionResponse() { 24 super(); 25 } 26 27 int readParameterWordsWireFormat( byte[] buffer, int bufferIndex ) { 28 int start = bufferIndex; 29 30 buffer[bufferIndex++] = (byte)0x00; buffer[bufferIndex++] = (byte)0x00; buffer[bufferIndex++] = (byte)0x00; 34 totalParameterCount = readInt4( buffer, bufferIndex ); 35 if( bufDataStart == 0 ) { 36 bufDataStart = totalParameterCount; 37 } 38 bufferIndex += 4; 39 totalDataCount = readInt4( buffer, bufferIndex ); 40 bufferIndex += 4; 41 parameterCount = readInt4( buffer, bufferIndex ); 42 bufferIndex += 4; 43 parameterOffset = readInt4( buffer, bufferIndex ); 44 bufferIndex += 4; 45 parameterDisplacement = readInt4( buffer, bufferIndex ); 46 bufferIndex += 4; 47 dataCount = readInt4( buffer, bufferIndex ); 48 bufferIndex += 4; 49 dataOffset = readInt4( buffer, bufferIndex ); 50 bufferIndex += 4; 51 dataDisplacement = readInt4( buffer, bufferIndex ); 52 bufferIndex += 4; 53 setupCount = buffer[bufferIndex] & 0xFF; 54 bufferIndex += 2; 55 if( setupCount != 0 ) { 56 if( log.level >= 3 ) 57 log.println( "setupCount is not zero: " + setupCount ); 58 } 59 60 return bufferIndex - start; 61 } 62 } 63 | Popular Tags |