- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 230 for SMBUtil (0.41 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
void testDecodeNegativeValuesAsUnsigned() throws SMBProtocolDecodingException { byte[] buffer = new byte[12]; SMBUtil.writeInt4(-1, buffer, 0); // chunksWritten SMBUtil.writeInt4(-2, buffer, 4); // chunkBytesWritten SMBUtil.writeInt4(-3, buffer, 8); // totalBytesWritten int bytesDecoded = response.decode(buffer, 0, buffer.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
byte[] buffer1 = new byte[256]; byte[] buffer2 = new byte[256]; // Prepare both buffers with valid structure SMBUtil.writeInt2(4, buffer1, 0); SMBUtil.writeInt2(0, buffer1, 2); SMBUtil.writeInt2(4, buffer2, 10); SMBUtil.writeInt2(0, buffer2, 12); // When int bytes1 = response.readBytesWireFormat(buffer1, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java
// Verify FID values assertEquals(0x1111, SMBUtil.readInt2(dst1, 4)); assertEquals(0x2222, SMBUtil.readInt2(dst2, 4)); assertEquals(0x3333, SMBUtil.readInt2(dst3, 4)); // Verify completion filters assertEquals(FILE_NOTIFY_CHANGE_FILE_NAME, SMBUtil.readInt4(dst1, 0)); assertEquals(FILE_NOTIFY_CHANGE_DIR_NAME, SMBUtil.readInt4(dst2, 0));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
final int start = bufferIndex; this.chunksWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.chunkBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; this.totalBytesWritten = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; return bufferIndex - start; }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Set SMB 3.1.1 dialect and 1 context SMBUtil.writeInt2(0x0311, buffer, 4); SMBUtil.writeInt2(1, buffer, 6); SMBUtil.writeInt4(128, buffer, 60); // Context offset // At offset 128 + 64 (header start), set context with excessive data length int contextPos = 192; SMBUtil.writeInt2(1, buffer, contextPos); // Context typeRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
assertEquals(0, SMBUtil.readInt4(buffer, 0)); // NameOffset field (2 bytes) - should be 16 (after header) assertEquals(16, SMBUtil.readInt2(buffer, 4)); // NameLength field (2 bytes) - should be 4 for "RqLs" assertEquals(4, SMBUtil.readInt2(buffer, 6)); // Reserved field (2 bytes) - should be 0 assertEquals(0, SMBUtil.readInt2(buffer, 8));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java
SMBUtil.writeInt2(23, buffer, offset); // sa_family: AF_INET6 SMBUtil.writeInt2(445, buffer, offset + 2); // sin6_port SMBUtil.writeInt4(0, buffer, offset + 4); // sin6_flowinfo System.arraycopy(address.getAddress(), 0, buffer, offset + 8, 16); // sin6_addr SMBUtil.writeInt4(0, buffer, offset + 24); // sin6_scope_id } else {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
byte[] buffer = new byte[60]; SMBUtil.writeInt2(60, buffer, 0); SMBUtil.writeInt2(0xFFFF, buffer, 2); // Max flags SMBUtil.writeInt4(0xFFFFFFFF, buffer, 4); // Max reserved (ignored) SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 8); // Max times SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 16); SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 24);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java
final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 9) { throw new SMBProtocolDecodingException("Structure size != 9"); } this.sessionFlags = SMBUtil.readInt2(buffer, bufferIndex + 2); bufferIndex += 4; final int securityBufferOffset = SMBUtil.readInt2(buffer, bufferIndex);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.8K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
SMBUtil.writeInt8(0, buffer, dataOffset + 32); // EndOfFile SMBUtil.writeInt8(0, buffer, dataOffset + 40); // AllocationSize SMBUtil.writeInt8(0, buffer, dataOffset + 48); // ExtFileAttributes SMBUtil.writeInt4(0, buffer, dataOffset + 56); // FileNameLength SMBUtil.writeInt4(8, buffer, dataOffset + 60); // EaSize SMBUtil.writeInt4(0, buffer, dataOffset + 64);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0)