Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for buildHeader (0.17 sec)

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

    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.NtStatus;
    import jcifs.smb.SmbException;
    
    class Smb2IoctlResponseTest {
    
        // Helper: build a minimal SMB2 header with a given status
        private static byte[] buildHeader(int status) {
            byte[] hdr = new byte[64]; // SMB2 header is 64 bytes
            System.arraycopy(SMBUtil.SMB2_HEADER, 0, hdr, 0, 64);
            // Write Status (little-endian) at offset 8 in the SMB2 header
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

        }
    
        /**
         * Build a minimal SMB2 header for a response at the given offset.
         * The header is prepared as a synchronous response with server-to-redirector flag.
         */
        private void buildHeader(byte[] buf, int start, int status, int command, long sessionId) {
            System.arraycopy(SMBUtil.SMB2_HEADER, 0, buf, start, SMBUtil.SMB2_HEADER.length);
            // Status at +8
            SMBUtil.writeInt4(status, buf, start + 8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
Back to top