Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 433 for flags2 (0.88 sec)

  1. src/test/java/jcifs/MsrpcLsarCloseTest.java

            // Verify that the constructor correctly sets ptype and flags
            // These values are inherited from LsarClose, but MsrpcLsarClose sets them in its constructor
            assertEquals(0, msrpcLsarClose.getPtype(), "ptype should be 0");
            assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, msrpcLsarClose.getFlags(),
                    "flags should be DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java

                buf[i] = (byte) ('A' + (i % 26));
            }
    
            // Call the method under test
            d.readBytesWireFormat(buf, 0);
    
            // After a full read both flags should be set and hasMore should be false
            assertTrue(d.getParametersDone(), "parametersDone should be true after reading");
            assertTrue(d.getDataDone(), "dataDone should be true after reading");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // When - Create new request
            Smb2TreeConnectRequest req = new Smb2TreeConnectRequest(mockConfig, TEST_PATH);
    
            // Then - Tree flags should be initialized to 0
            int flags = (int) treeFlagsField.get(req);
            assertEquals(0, flags);
        }
    
        @Test
        @DisplayName("Should handle maximum path length")
        void testMaximumPathLength() throws Exception {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CloseResponse.java

            super(config);
            this.fileId = fileId;
            this.fileName = fileName;
        }
    
        /**
         * Get the close flags
         *
         * @return the closeFlags
         */
        public final int getCloseFlags() {
            return this.closeFlags;
        }
    
        /**
         * Get the file creation time
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            }
    
            if (buf[0] != 5 && buf[1] != 0) {
                throw new IOException("Unexpected DCERPC PDU header");
            }
    
            flags = buf[3] & 0xFF;
            // next read is start of new frag
            isStart = (flags & DCERPC_LAST_FRAG) == DCERPC_LAST_FRAG;
    
            length = Encdec.dec_uint16le(buf, 8);
            if (length > max_recv) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Structure size
            assertEquals(25, SMBUtil.readInt2(buffer, bodyOffset));
    
            // Flags (VcNumber) and SecurityMode
            assertEquals(0x01, buffer[bodyOffset + 2] & 0xFF); // Session binding flag
            assertEquals(securityMode, buffer[bodyOffset + 3] & 0xFF);
    
            // Capabilities
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcEnumerateAliasesInDomainTest.java

            assertEquals(acctFlags, request.acct_flags, "The account flags should be set correctly.");
            assertEquals(mockSamArray, request.sam, "The sam array should be set correctly.");
            // ptype and flags are protected fields in DcerpcMessage, cannot test directly
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  8. docs/smb3-features/01-smb3-lease-design.md

    - **MS-SMB2 Section 2.2.23**: SMB2 LEASE_BREAK Notification
    - **MS-SMB2 Section 2.2.24**: SMB2 LEASE_BREAK Acknowledgment
    
    ## 3. Lease Types and States
    
    ### 3.1 Lease State Flags
    ```java
    public class Smb2LeaseState {
        // Lease state flags (can be combined)
        public static final int SMB2_LEASE_NONE           = 0x00;
        public static final int SMB2_LEASE_READ_CACHING   = 0x01;  // R - Read caching
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        }
    
        @Test
        @DisplayName("Test SMB create flags setter")
        void testSetSmbCreateFlags() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            long flags = 0x1234567890ABCDEFL;
            request.setSmbCreateFlags(flags);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
            // Verify flags are written at correct offset (8-15)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

            assertTrue(str.contains("securityInformation=0x" + Hexdump.toHexString(securityInfo, 8)));
        }
    
        @Test
        @DisplayName("Test constructor with different security information flags")
        void testConstructorWithDifferentSecurityFlags() {
            int fid = 0x5678;
            int securityInfo = ALL_SECURITY_INFORMATION;
    
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, fid, securityInfo);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
Back to top