Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for snaps (0.03 sec)

  1. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            assertTrue(length > 0);
            assertEquals(0, testBlock.wordCount);
            assertEquals(0, testBlock.byteCount);
        }
    
        @Test
        @DisplayName("Test decode with Snap server workaround")
        void testDecodeWithSnapServerWorkaround() throws SMBProtocolDecodingException {
            testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25);
            byte[] buffer = new byte[1024];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                 * so let's populate them here
                 */
    
                andxCommand = buffer[bufferIndex];
                andxOffset = readInt2(buffer, bufferIndex + 2);
    
                if (andxOffset == 0) { /* Snap server workaround */
                    andxCommand = (byte) 0xFF;
                }
    
                /*
                 * no point in calling readParameterWordsWireFormat if there are no more
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            int len = block.decode(buf, 0);
            assertTrue(len > 0);
            assertEquals(4, block.wordCount);
            assertNull(block.andx);
        }
    
        @Test
        @DisplayName("readAndXWireFormat applies Snap server workaround (offset 0)")
        void testReadAndXWireFormatSnapWorkaround() {
            DummyAndXBlock block = new DummyAndXBlock();
            block.headerStart = 0;
    
            byte[] buf = new byte[64];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 */
    
                this.andxCommand = buffer[bufferIndex];
                this.andxOffset = SMBUtil.readInt2(buffer, bufferIndex + 2);
    
                if (this.andxOffset == 0) { /* Snap server workaround */
                    this.andxCommand = (byte) 0xFF;
                }
    
                /*
                 * no point in calling readParameterWordsWireFormat if there are no more
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top