Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 2 revisions

QueueYankTest Element Documentation

NAME

QueueYankTest — Click element; check packets against a specification

SYNOPSIS

QueueYankTest(QUEUE)

Ports: none

DESCRIPTION

QueueYankTest compares all received packets against a specification provided by keyword arguments. It prints error messages when incoming packets don't match the spec.

Keyword arguments are as follows. Tests are performed for the keyword arguments you specify. If you don't want to run a test, don't supply the keyword. QueueYankTest(), with no keywords, accepts every packet.

  • DATA — String. The contents of the packet (starting DATA_OFFSET bytes in) must exactly match DATA.
  • DATA_OFFSET — Integer. Specifies the offset into the packet used for DATA matches. Default is 0.
  • LENGTH — Integer. The packet's length must equal LENGTH.
  • LENGTH_GE — Integer. The packet's length must be at least LENGTH_GE.
  • LENGTH_LE — Integer. The packet's length must be at most LENGTH_LE. Specify at most one of LENGTH, LENGTH_GE, and LENGTH_LE.
  • ALIGNMENT — Two space-separated integers, `MODULUS OFFSET'. The packet's data must be aligned OFFSET bytes off from a MODULUS-byte boundary.

SEE ALSO

PacketTest

Generated by click-elem2man from ../elements/test/queueyanktest.hh:9 on 2017/10/17.

Clone this wiki locally