2.2.1.3 PacketPrefixByte

The PacketPrefixByte is a byte that MUST be sent with each RDP-UDP2 packet. The byte MUST be inserted in the RDP-UDP2 packet as described in section 3.1.1.1.5.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

A

B

C

A - Reserved (1 bit): A 1-bit integer that is reserved and MUST be set to 0.

B - Packet_Type_Index (4 bits): A 4-bit unsigned integer that indicates the type of the packet. The value for this field MUST be set to either 0 or 8.

C - Short_Packet_Length (3 bits): A 3-bit unsigned integer that specifies the length, in bytes, of the RDP-UDP2 Packet (section 2.2.1) that follows the PacketPrefixByte if the size is less than or equal to 7 bytes. If the length of the RDP-UDP2 Packet (section 2.2.1) that follows the PacketPrefixByte is greater than 7 bytes, then this field MUST be set to 7.