Module jcifs

Class Smb2IoctlRequest

All Implemented Interfaces:
CommonServerMessageBlock, CommonServerMessageBlockRequest, Request<Smb2IoctlResponse>, RequestWithFileId, Message, Request

public class Smb2IoctlRequest extends ServerMessageBlock2Request<Smb2IoctlResponse> implements RequestWithFileId
SMB2 IOCTL request message. This command is used to perform device control operations on files, pipes, or the server itself.
Author:
mbechler
  • Field Details

    • FSCTL_DFS_GET_REFERRALS

      public static final int FSCTL_DFS_GET_REFERRALS
      Function code to retrieve DFS referrals
      See Also:
    • FSCTL_PIPE_PEEK

      public static final int FSCTL_PIPE_PEEK
      Function code to peek at named pipe data without removing it
      See Also:
    • FSCTL_PIPE_WAIT

      public static final int FSCTL_PIPE_WAIT
      Function code to wait for a named pipe to become available
      See Also:
    • FSCTL_PIPE_TRANSCEIVE

      public static final int FSCTL_PIPE_TRANSCEIVE
      Function code to transceive data on a named pipe
      See Also:
    • FSCTL_SRV_COPYCHUNK

      public static final int FSCTL_SRV_COPYCHUNK
      Function code for server-side copy chunk operation
      See Also:
    • FSCTL_SRV_ENUMERATE_SNAPSHOTS

      public static final int FSCTL_SRV_ENUMERATE_SNAPSHOTS
      Function code to enumerate volume shadow copy snapshots
      See Also:
    • FSCTL_SRV_REQUEST_RESUME_KEY

      public static final int FSCTL_SRV_REQUEST_RESUME_KEY
      Function code to request a resume key for server-side copy
      See Also:
    • FSCTL_SRV_READ_HASH

      public static final int FSCTL_SRV_READ_HASH
      Function code to read hash data from server
      See Also:
    • FSCTL_SRV_COPYCHUNK_WRITE

      public static final int FSCTL_SRV_COPYCHUNK_WRITE
      Function code for server-side copy chunk write operation
      See Also:
    • FSCTL_LRM_REQUEST_RESILENCY

      public static final int FSCTL_LRM_REQUEST_RESILENCY
      Function code to request resilient handle for network failures
      See Also:
    • FSCTL_QUERY_NETWORK_INTERFACE_INFO

      public static final int FSCTL_QUERY_NETWORK_INTERFACE_INFO
      Function code to query network interface information
      See Also:
    • FSCTL_SET_REPARSE_POINT

      public static final int FSCTL_SET_REPARSE_POINT
      Function code to set a reparse point on a file
      See Also:
    • FSCTL_DFS_GET_REFERRALS_EX

      public static final int FSCTL_DFS_GET_REFERRALS_EX
      Function code to retrieve extended DFS referrals
      See Also:
    • FSCTL_FILE_LEVEL_TRIM

      public static final int FSCTL_FILE_LEVEL_TRIM
      Function code to trim file level storage
      See Also:
    • FSCTL_VALIDATE_NEGOTIATE_INFO

      public static final int FSCTL_VALIDATE_NEGOTIATE_INFO
      Function code to validate SMB2 negotiate information
      See Also:
    • SMB2_O_IOCTL_IS_FSCTL

      public static final int SMB2_O_IOCTL_IS_FSCTL
      Flag indicating this IOCTL is a file system control operation
      See Also:
  • Constructor Details

    • Smb2IoctlRequest

      public Smb2IoctlRequest(Configuration config, int controlCode)
      Constructs an SMB2 IOCTL request with an unspecified file ID
      Parameters:
      config - the client configuration
      controlCode - the IOCTL control code
    • Smb2IoctlRequest

      public Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId)
      Constructs an SMB2 IOCTL request with a specified file ID
      Parameters:
      config - the client configuration
      controlCode - the IOCTL control code
      fileId - the file identifier
    • Smb2IoctlRequest

      public Smb2IoctlRequest(Configuration config, int controlCode, byte[] fileId, byte[] outputBuffer)
      Constructs an SMB2 IOCTL request with output buffer
      Parameters:
      config - the client configuration
      controlCode - the IOCTL control code
      fileId - the file identifier
      outputBuffer - the output buffer for the IOCTL operation
  • Method Details