Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for 0xFE (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            int headerStart = 0;
            int bodyStart = Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Write SMB2 header (64 bytes)
            // Protocol ID
            System.arraycopy(new byte[] { (byte) 0xFE, 'S', 'M', 'B' }, 0, buffer, headerStart, 4);
            // Structure size (64)
            SMBUtil.writeInt2(64, buffer, headerStart + 4);
            // Credit charge
            SMBUtil.writeInt2(1, buffer, headerStart + 6);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

                 * 00SSFSMB
                 * 0 - 0's
                 * S - size of payload
                 * FSMB - 0xFF SMB magic #
                 */
    
                if (this.sbuf[0] == (byte) 0x00 && this.sbuf[4] == (byte) 0xFE && this.sbuf[5] == (byte) 'S' && this.sbuf[6] == (byte) 'M'
                        && this.sbuf[7] == (byte) 'B') {
                    this.smb2 = true;
                    // also read the rest of the header
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top