Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SMB_HEADER (0.12 sec)

  1. src/test/java/jcifs/internal/util/SMBUtilTest.java

        void testSMBHeader() {
            assertNotNull(SMBUtil.SMB_HEADER);
            assertEquals(24, SMBUtil.SMB_HEADER.length);
    
            // Verify SMB header signature
            assertEquals((byte) 0xFF, SMBUtil.SMB_HEADER[0]);
            assertEquals((byte) 'S', SMBUtil.SMB_HEADER[1]);
            assertEquals((byte) 'M', SMBUtil.SMB_HEADER[2]);
            assertEquals((byte) 'B', SMBUtil.SMB_HEADER[3]);
    
            // Verify remaining bytes are zeros
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            @DisplayName("Test decode basic message")
            void testDecodeBasicMessage() throws SMBProtocolDecodingException {
                byte[] buffer = new byte[1024];
                System.arraycopy(SMBUtil.SMB_HEADER, 0, buffer, 0, SMBUtil.SMB_HEADER.length);
    
                buffer[SmbConstants.CMD_OFFSET] = 0x25;
                SMBUtil.writeInt4(0, buffer, SmbConstants.ERROR_CODE_OFFSET);
                buffer[SmbConstants.FLAGS_OFFSET] = 0x12;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/util/SMBUtil.java

            writeInt4(t / 1000, dst, dstIndex);
        }
    
        /**
         * SMB1 protocol header template with magic number 0xFF 'SMB'
         */
        public static final byte[] SMB_HEADER = { (byte) 0xFF, (byte) 'S', (byte) 'M', (byte) 'B', (byte) 0x00, (byte) 0x00, (byte) 0x00,
                (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @return the number of bytes written
         */
        protected int writeHeaderWireFormat(final byte[] dst, int dstIndex) {
            System.arraycopy(SMBUtil.SMB_HEADER, 0, dst, dstIndex, SMBUtil.SMB_HEADER.length);
            dst[dstIndex + SmbConstants.CMD_OFFSET] = this.command;
            dst[dstIndex + SmbConstants.FLAGS_OFFSET] = this.flags;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top