FieldLengthIs 1

Description:

This method makes sure that the field length is correct. This is useful for those fields that have variable lengths, but not all of the lengths are legal. The parameters and functionality are the same as for FieldIs, except that the method is verifying the length of the field rather than the contents.

Parameters:

[Required]

List

"Operator"


List Values

GreaterThan

GreaterThanOrEqualTo

LessThan

LessThanOrEqualTo

EqualTo

NotEqualTo

[Required]

Int64

"Match value"


[Optional]

List

"Units"

(Default value: Bytes)

List values:

Bit

Bits

Times

Nibble

Nibbles

Byte

Bytes

Octet

Octets

Word

Words

Dword

Dwords

Qword

Qwords

[Optional]

List

"Output radix"

Default value: AsDecimal

List values:

AsDecimal

AsHex

Example:

FIELD unexpected_data (ToEndOfLayer) IF (MoreBytes) (StringOfHex) "Unexpected Data" VERIFY (FieldLengthIs EqualTo 0)