ROPE Language Reference - "$packet_len"

This is a read-only integer register that contains the length (in bytes) of the packet being inspected.