Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 93 for 0x00000000 (0.09 seconds)

  1. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            assertEquals(SmbFile.TYPE_SHARE, otherShare.getType());
    
            // Test with hidden flag (0x80000000) which should be ignored by getType()
            SmbShareInfo hiddenPrinter = new SmbShareInfo("HIDDEN_PRINTER", 1 | 0x80000000, "hidden printer");
            assertEquals(SmbFile.TYPE_PRINTER, hiddenPrinter.getType());
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test getErrorCode() method.
         */
        @Test
        void testGetErrorCode() {
            int errorCode = 0x00000005; // DCERPC_FAULT_ACCESS_DENIED
            DcerpcException exception = new DcerpcException(errorCode);
            assertEquals(errorCode, exception.getErrorCode(), "getErrorCode() should return the correct error code.");
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                testBlock.setErrorCode(0x00000001);
    
                String result = testBlock.toString();
    
                assertTrue(result.contains("command=SMB_COM_TREE_CONNECT_ANDX"));
                assertTrue(result.contains("errorCode="));
                // Should show non-zero error code
                assertTrue(result.contains("errorCode=0x00000001") || result.contains("errorCode=1"));
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SID.java

                    handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\samr]", auth);
                    policyHandle = new SamrPolicyHandle(handle, authorityServerName, 0x00000030);
                    domainHandle = new SamrDomainHandle(handle, policyHandle, 0x00000200, domsid);
                    return SID.getGroupMemberSids0(handle, domainHandle, domsid, getRid(), flags);
                } finally {
                    if (handle != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            SMBUtil.writeInt4(status, buf, start + 8);
            // Command at +12
            SMBUtil.writeInt2(command, buf, start + 12);
            // Flags at +16: server-to-redirector
            SMBUtil.writeInt4(0x00000001, buf, start + 16);
            // SessionId at +40 (sync header)
            SMBUtil.writeInt8(sessionId, buf, start + 40);
        }
    
        /**
         * Build a SESSION_SETUP response body with specified flags and security blob.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            // Write Command = SMB2_IOCTL (0x000B) at offset 12
            SMBUtil.writeInt2(0x000B, hdr, 12);
            // Mark as server response to be realistic (optional)
            SMBUtil.writeInt4(0x00000001, hdr, 16); // Flags = SMB2_FLAGS_SERVER_TO_REDIR
            return hdr;
        }
    
        // Helper: build SMB2 IOCTL response body (without header) with structureSize=49
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

         */
        private static byte[] buildSmb2Header() {
            byte[] header = Arrays.copyOf(SMBUtil.SMB2_HEADER, SMBUtil.SMB2_HEADER.length);
            // 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;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/MultiChannelManager.java

                transport.ensureConnected();
    
                // Verify multi-channel capability (SMB3+ required)
                if (!transport.isSMB2() || !transport.hasCapability(0x00000008)) { // SMB2_GLOBAL_CAP_MULTI_CHANNEL
                    throw new CIFSException("Server does not support SMB multi-channel capability");
                }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        }
    
        @Test
        @DisplayName("Test file attributes setter")
        void testSetFileAttributes() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int attributes = 0x00000020; // FILE_ATTRIBUTE_ARCHIVE
            request.setFileAttributes(attributes);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            if (!context.getConfig().isUseMultiChannel()) {
                return false;
            }
    
            // MS-SMB2: Check if server advertised SMB2_GLOBAL_CAP_MULTI_CHANNEL (0x00000008)
            // This capability should be checked from the negotiate response
            // The server capabilities are typically stored in the session or transport
    
            // TODO: Integration point - check server capabilities
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
Back to Top