Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for Smb2IoctlRequest (0.13 seconds)

  1. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            int[] controlCodes = { Smb2IoctlRequest.FSCTL_PIPE_PEEK, Smb2IoctlRequest.FSCTL_PIPE_WAIT, Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE,
                    Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, Smb2IoctlRequest.FSCTL_VALIDATE_NEGOTIATE_INFO };
    
            for (int controlCode : controlCodes) {
                Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, controlCode, TEST_FILE_ID);
                assertNotNull(request);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                if (th.isSMB2()) {
                    final Smb2IoctlRequest req =
                            new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE, fh.getFileId(), inB);
                    req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                    req.setInputData(new ByteEncodable(buf, off, length));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb/SmbCopyUtil.java

                            // needs read access
                            final Smb2IoctlRequest copy = new Smb2IoctlRequest(sh.getConfig(),
                                    write ? Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK_WRITE : Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, dfd.getFileId());
                            copy.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                            copy.setInputData(new SrvCopychunkCopy(resumeKey, chunkInfo));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbTreeImpl.java

            log.debug("Sending VALIDATE_NEGOTIATE_INFO");
            final Smb2IoctlRequest req = new Smb2IoctlRequest(sess.getConfig(), Smb2IoctlRequest.FSCTL_VALIDATE_NEGOTIATE_INFO);
            req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
            req.setInputData(new ValidateNegotiateInfoRequest(negoReq.getCapabilities(), negoReq.getClientGuid(),
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            when(tree.send(any(Smb2IoctlRequest.class), any())).thenReturn(resp);
    
            byte[] out = new byte[10];
            int read = target.sendrecv(new byte[] { 9, 8, 7 }, 0, 3, out, 1024);
            assertEquals(42, read);
    
            // Verify we issued an SMB2 IOCTL
            ArgumentCaptor<Smb2IoctlRequest> captor = ArgumentCaptor.forClass(Smb2IoctlRequest.class);
            verify(tree).send(captor.capture(), any());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            // Send FSCTL_QUERY_NETWORK_INTERFACE_INFO per MS-SMB2 3.2.4.23
            Smb2IoctlRequest request =
                    new Smb2IoctlRequest(context.getConfig(), Smb2IoctlRequest.FSCTL_QUERY_NETWORK_INTERFACE_INFO, new byte[16] // Reserved/Unused file ID
                    );
            request.setMaxOutputResponse(65536);
            request.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

    import jcifs.internal.smb2.info.Smb2SetInfoRequest;
    import jcifs.internal.smb2.io.Smb2FlushRequest;
    import jcifs.internal.smb2.io.Smb2ReadRequest;
    import jcifs.internal.smb2.io.Smb2WriteRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.lock.Smb2Lock;
    import jcifs.internal.smb2.lock.Smb2LockRequest;
    
    /**
     * Test class for RequestWithFileId interface.
     * Tests the interface contract and various implementations.
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Assert
            assertEquals(42, n);
            ArgumentCaptor<Smb2IoctlRequest> cap = ArgumentCaptor.forClass(Smb2IoctlRequest.class);
            verify(tree).send(cap.capture(), eq(RequestParam.NO_RETRY));
            assertNotNull(cap.getValue()); // captured request should be present
        }
    
        @Test
        @DisplayName("sendrecv uses TransactNamedPipe when PIPE_TYPE_TRANSACT is set")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. docs/smb3-features/03-multi-channel-design.md

                establishAdditionalChannels();
            }
        }
        
        private void queryRemoteInterfaces() throws IOException {
            // Send FSCTL_QUERY_NETWORK_INTERFACE_INFO
            Smb2IoctlRequest request = new Smb2IoctlRequest();
            request.setCtlCode(FSCTL_QUERY_NETWORK_INTERFACE_INFO);
            request.setFileId(new byte[16]);  // Use session ID
            request.setMaxOutputResponse(65536);
            
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            byte[] header = buildHeader(NtStatus.NT_STATUS_SUCCESS);
            byte[] output = new byte[] { 1, 2, 3, 4, 5 };
            byte[] body = buildIoctlResponseBody(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, new byte[16], 0, null, output.length, output, 0x0);
            byte[] packet = new byte[header.length + body.length];
            System.arraycopy(header, 0, packet, 0, header.length);
    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)
Back to Top