Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for Smb2IoctlRequest (0.09 seconds)

  1. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java

    /**
     * SMB2 IOCTL request message. This command is used to perform device control operations
     * on files, pipes, or the server itself.
     *
     * @author mbechler
     *
     */
    public class Smb2IoctlRequest extends ServerMessageBlock2Request<Smb2IoctlResponse> implements RequestWithFileId {
    
        /**
         * Function code to retrieve DFS referrals
         */
        public static final int FSCTL_DFS_GET_REFERRALS = 0x0060194;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/smb/SmbPipeInputStream.java

                if (th.isSMB2()) {
                    final Smb2IoctlRequest req = new Smb2IoctlRequest(th.getConfig(), Smb2IoctlRequest.FSCTL_PIPE_PEEK, fd.getFileId());
                    req.setMaxOutputResponse(16);
                    req.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                    final Smb2IoctlResponse resp = th.send(req, RequestParam.NO_RETRY);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top