Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 88 for 0x0002 (0.12 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                assertEquals("Unknown dialect", exception.getMessage());
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0x0000, 0x0100, 0x0201, 0x0303, 0x0400, 0xFFFF })
            @DisplayName("Should throw exception for invalid dialects")
            void testConstructorInvalidDialects(int dialect) {
                IllegalArgumentException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

            // Check information level (FS_SIZE_INFO maps to 0x0103)
            int actualInfoLevel = SMBUtil.readInt2(buffer, 0);
            assertEquals(0x0103, actualInfoLevel);
        }
    
        @DisplayName("Test writeParametersWireFormat with different information levels")
        @ParameterizedTest
        @CsvSource({ "-1, 1", // SMB_INFO_ALLOCATION -> 0x0001
                "3, 259" // FS_SIZE_INFO -> 0x0103
        })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComQueryInformationResponse.java

     */
    
    package jcifs.smb1.smb1;
    
    import java.util.Date;
    
    import jcifs.smb1.util.Hexdump;
    
    class SmbComQueryInformationResponse extends ServerMessageBlock implements Info {
    
        private int fileAttributes = 0x0000;
        private long lastWriteTime = 0L;
        private final long serverTimeZoneOffset;
        private int fileSize = 0;
    
        SmbComQueryInformationResponse(final long serverTimeZoneOffset) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

            }
    
            writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            writeInt2(maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java

     * for the requested file or directory.
     */
    public class SmbComQueryInformationResponse extends ServerMessageBlock implements SmbBasicFileInfo {
    
        private int fileAttributes = 0x0000;
        private long lastWriteTime = 0L;
        private final long serverTimeZoneOffset;
        private int fileSize = 0;
    
        /**
         * Constructs a query information response.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

            }
    
            SMBUtil.writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            SMBUtil.writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt2(this.maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            ByteBuffer bb = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
            bb.putShort((short) fid);
            bb.put((byte) 0x00); // Reserved
            bb.put((byte) 0x00); // Reserved
            bb.putInt(securityInformation);
            return bb.array();
        }
    
        /**
         * Provide a range of values that are valid for the constructor.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001 - 2 bytes)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, descrEnd + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            // Mark as server->client response for realism
            SMBUtil.writeInt4(0x00000001, header, 16); // Flags
            // Command SMB2_CREATE (0x0005)
            SMBUtil.writeInt2(0x0005, header, 12);
            // Some message id
            SMBUtil.writeInt8(1L, header, 24);
            return header;
        }
    
        /**
         * Build a basic CREATE response body without create contexts.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        void testConstructor() throws Exception {
            // Verify command is set correctly (SMB2_FLUSH = 0x0007)
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(request);
            assertEquals(0x0007, command); // SMB2_FLUSH value
    
            // Verify file ID is set
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top