Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for getOpnum (0.06 sec)

  1. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

            @Test
            @DisplayName("should inherit getOpnum method")
            void testGetOpnumMethod() {
                // Arrange
                SamrPolicyHandle ph = createMockPolicyHandle();
                MsrpcSamrConnect2 msg = new MsrpcSamrConnect2("\\\\server", 0x000F0000, ph);
    
                // Act & Assert - getOpnum is inherited from SamrConnect2
                assertDoesNotThrow(() -> msg.getOpnum());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

        class OpnumTests {
    
            @Test
            @DisplayName("getOpnum should always return 0")
            void testGetOpnum() {
                // When
                int opnum = bind.getOpnum();
    
                // Then
                assertEquals(0, opnum, "Opnum should always be 0 for bind messages");
            }
    
            @Test
            @DisplayName("getOpnum should be consistent across multiple calls")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/msrpc/samr.java

         * This operation releases resources associated with the handle.
         */
        public static class SamrCloseHandle extends DcerpcMessage {
    
            @Override
            public int getOpnum() {
                return 0x01;
            }
    
            /** The return value of the operation */
            public int retval;
            /** The handle to be closed */
            public rpc.policy_handle handle;
    
            /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java

         * This operation releases resources associated with the handle.
         */
        public static class SamrCloseHandle extends DcerpcMessage {
    
            @Override
            public int getOpnum() {
                return 0x01;
            }
    
            /** The return value of the operation */
            public int retval;
            /** The handle to be closed */
            public rpc.policy_handle handle;
    
            /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcMessage.java

                alloc_hint_index = buf.getIndex();
                buf.enc_ndr_long(0); /* momentarily skip alloc hint */
                buf.enc_ndr_short(0); /* context id */
                buf.enc_ndr_short(getOpnum());
            }
    
            encode_in(buf);
            this.length = buf.getIndex() - start;
    
            if (this.ptype == 0) {
                buf.setIndex(alloc_hint_index);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java

            }
        }
    
        /**
         * RPC message for enumerating all shares on a server.
         */
        public static class ShareEnumAll extends DcerpcMessage {
    
            @Override
            public int getOpnum() {
                return 0x0f;
            }
    
            /**
             * The return value of the operation.
             */
            public int retval;
            /**
             * The name of the server.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

                alloc_hint_index = buf.getIndex();
                buf.enc_ndr_long(0); /* momentarily skip alloc hint */
                buf.enc_ndr_short(0); /* context id */
                buf.enc_ndr_short(getOpnum());
            }
    
            encode_in(buf);
            length = buf.getIndex() - start;
    
            if (ptype == 0) {
                buf.setIndex(alloc_hint_index);
                alloc_hint = length - alloc_hint_index;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle);
    
                // Then: Should have correct opnum and handle
                assertEquals(0x01, message.getOpnum());
                assertEquals(mockPolicyHandle, message.handle);
            }
    
            @Test
            @DisplayName("Should encode input parameters correctly")
            void testEncodeIn() throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/msrpc/srvsvc.java

            }
        }
    
        /**
         * RPC message for enumerating all shares on a server.
         */
        public static class ShareEnumAll extends DcerpcMessage {
    
            @Override
            public int getOpnum() {
                return 0x0f;
            }
    
            /**
             * The return value of the operation.
             */
            public int retval;
            /**
             * The name of the server.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

                }
            }
        }
    
        /**
         * LSA close handle message.
         */
        public static class LsarClose extends DcerpcMessage {
    
            @Override
            public int getOpnum() {
                return 0x00;
            }
    
            /** Return value from the RPC call. */
            public int retval;
            /** Policy handle to be closed. */
            public rpc.policy_handle handle;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
Back to top