ThisLayerLength

Description:

This method sets the size of the next protocol layer to the value in the "Field" parameter minus the value of the "Offset" parameter. ThisLayerLength is used when a field in the current layer indicates the combined size of the current layer plus the payload, where the payload contains the next layer(s).

Parameters:

[Required]

Field

"Field that contains the length in bytes of this layer"


[Optional]

Int

"Offset"

(Default value: 0)

Example:

NEXT_PROTOCOL_SIZE (ThisLayerLength total_length)