- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 798 for packet (0.1 seconds)
-
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
assertThrows(IOException.class, () -> sis.read()); } @Test @DisplayName("Unknown packet type is handled by continuing to next packet") void unknownPacketTypeHandled() throws IOException { // According to the SocketInputStream implementation, unknown packet types // are handled in the switch statement's default case which continues the loop byte[] data = new byte[] { 1, 2 };
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java
*/ package jcifs.smb1.netbios; import java.io.IOException; import java.io.InputStream; /** * NetBIOS session request packet for establishing sessions. * This packet is sent to request a NetBIOS session with a remote host. */ public class SessionRequestPacket extends SessionServicePacket { private final Name calledName, callingName;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
int totalRead = packet.readWireFormat(bais, data, 0); assertEquals(14, totalRead); // 4 header + 10 trailer assertEquals(0x85, packet.type); assertEquals(10, packet.length); } @Test @DisplayName("writeHeaderWireFormat should write correct header") void testWriteHeaderWireFormat() { packet.type = SessionServicePacket.SESSION_REQUEST;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
packet.nameTrnId = 0x1234; packet.isResponse = true; packet.opCode = NameServicePacket.QUERY; packet.isAuthAnswer = true; packet.isTruncated = true; packet.isRecurDesired = true; packet.isRecurAvailable = true; packet.isBroadcast = true; packet.resultCode = NameServicePacket.FMT_ERR; packet.questionCount = 1; packet.answerCount = 2;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
} /** * The toString representation should include the class name and both * fields. This provides visibility into the debug output of the SMB * packet. */ @Test @DisplayName("happy: toString contains class info and field values") void testToStringContainsAllInfo() { int fid = 256; long lwt = 9876543210L;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
// Arrange NameServicePacket packet = new NodeStatusRequest(mockConfig, mockName); // Assert assertInstanceOf(NodeStatusRequest.class, packet); assertEquals(NameServicePacket.NBSTAT, packet.questionType); assertFalse(packet.isRecurDesired); assertFalse(packet.isBroadcast); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(5); byte[] buf = newBuffer(10); int written = cmd.writeSetupWireFormat(buf, 0); assertEquals(2, written, "setup packet should write 2 bytes"); assertEquals(SmbComTransaction.TRANS2_QUERY_FS_INFORMATION, buf[0], "first byte should be subCommand"); assertEquals((byte) 0x00, buf[1], "second byte should be zero"); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
class SignatureTests { @Test @DisplayName("Should detect signed packet") void testIsSigned() { response.setFlagsForTest(ServerMessageBlock2.SMB2_FLAGS_SIGNED); assertTrue(response.isSigned()); } @Test @DisplayName("Should detect unsigned packet") void testIsNotSigned() { response.setFlagsForTest(0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java
* Default constructor for DcerpcMessage. * Initializes the DCE/RPC message structure for SMB1 protocol. */ protected DcerpcMessage() { // Default constructor } /** * The packet type of this DCERPC message */ protected int ptype = -1; /** * The flags for this DCERPC message */ protected int flags = 0; /** * The total length of this DCERPC messageCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6K bytes - Click Count (0)