Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 244 for flags2 (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

                    path = readString(buffer, start + pathOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    if (nodeOffset > 0) {
                        node = readString(buffer, start + nodeOffset, len, (flags2 & FLAGS2_UNICODE) != 0);
                    }
                } else if (version == 1) {
                    node = readString(buffer, bufferIndex, len, (flags2 & FLAGS2_UNICODE) != 0);
                }
    
                return size;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

         * It should initialize the command and flags2 with default values.
         */
        @Test
        void testConstructor() {
            // Verify that the command is set to SMB_COM_NEGOTIATE
            assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command,
                    "Constructor should set the command to SMB_COM_NEGOTIATE.");
            // Verify that flags2 is set to the default flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

        }
    
        /**
         * Verifies reset() clears flags2 and updates resumeKey and filename used for parameters.
         */
        @Test
        void testResetUpdatesStateAndParameters() {
            // Given
            Trans2FindNext2 next = new Trans2FindNext2(0x0001, 0x0AAA0BBB, "old");
            next.flags2 = 0xFFFF; // simulate non-zero flags2
    
            // When
            next.reset(0x11121314, "last.dat");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbConstantsTest.java

            // These tests should be removed or replaced with actual constants
        }
    
        /**
         * Test individual FLAGS2 constants.
         */
        @Test
        @DisplayName("FLAGS2 individual constants are correct")
        void flags2ConstantsTest() {
            // Test individual flag values
            assertEquals(0x0001, SmbConstants.FLAGS2_LONG_FILENAMES);
            assertEquals(0x0002, SmbConstants.FLAGS2_EXTENDED_ATTRIBUTES);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/ServerData.java

         */
        public ServerData() {
            // Default constructor
        }
    
        /**
         * Server flags from the SMB header.
         */
        public byte sflags;
        /**
         * Server flags2 field from the SMB header.
         */
        public int sflags2;
        /**
         * Maximum number of outstanding multiplex requests.
         */
        public int smaxMpxCount;
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/Trans2FindNext2.java

            flags = 0x00;
            maxParameterCount = 8;
            maxDataCount = Trans2FindFirst2.LIST_SIZE;
            maxSetupCount = 0;
        }
    
        @Override
        void reset(final int resumeKey, final String lastName) {
            super.reset();
            this.resumeKey = resumeKey;
            this.filename = lastName;
            flags2 = 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComNegotiate.java

    class SmbComNegotiate extends ServerMessageBlock {
    
        private static final String DIALECTS = "\u0002NT LM 0.12\u0000";
    
        SmbComNegotiate() {
            command = SMB_COM_NEGOTIATE;
            flags2 = DEFAULT_FLAGS2;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2FindNext2.java

            this.tflags = 0x00;
            this.maxParameterCount = 8;
            this.maxItems = batchCount;
            this.maxDataCount = batchSize;
            this.maxSetupCount = 0;
        }
    
        @Override
        public void reset(final int rk, final String lastName) {
            super.reset();
            this.resumeKey = rk;
            this.filename = lastName;
            this.flags2 = 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

                if (byteCount > server.encryptionKeyLength) {
                    int len = 0;
                    // Use appropriate string decoding based on Unicode flag
                    try {
                        if ((flags2 & FLAGS2_UNICODE) == FLAGS2_UNICODE) {
                            while (buffer[bufferIndex + len] != (byte) 0x00 || buffer[bufferIndex + len + 1] != (byte) 0x00) {
                                len += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            // Setup server data for this scenario
            serverData.capabilities = 0; // No extended security
            serverData.encryptionKeyLength = 8;
            response.flags2 = ServerMessageBlock.FLAGS2_UNICODE;
            byte[] domainNameBytes = "DOMAIN_U".getBytes("UTF-16LE");
            response.byteCount = 8 + domainNameBytes.length + 2; // key + domain + null terminator
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top