2.2.5 DATA Packet

The DATA packet carries data in the DATA field, which follows the Header. The length of the DATA field is the total SMP packet length minus the SMP packet header length.


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

SMID

FLAGS

SID

LENGTH

SEQNUM

WNDW

DATA (variable)

...

SMID (1 byte): See section 2.2.1 for a description of the SMID field.

FLAGS (1 byte): This unsigned integer contains control flags that identify this packet as a DATA packet. The value of the FLAGS field MUST be 0x08.

SID (2 bytes):  The SID field MUST be set to the value that was set when the session was opened. See section 2.2.1 for a description of the SID field.

LENGTH (4 bytes):  The value of the LENGTH field MUST be at least 0x00000010. See section 2.2.1 for a description of the LENGTH field.

SEQNUM (4 bytes): See section 2.2.1 for a description of the SEQNUM field.

WNDW (4 bytes): See section 2.2.1 for a description of the WNDW field.

DATA (variable): The DATA field contains the user data of the DATA packet. The size of the DATA field can be determined by subtracting the length of the Header (16 bytes) from the value of the LENGTH field. For example, a LENGTH value of 0x00000025 means the user data will be 21 bytes long.