Skip to content
Tom Barbette edited this page Oct 3, 2018 · 2 revisions

ComparePackets Element Documentation

NAME

ComparePackets — Click element; compare packets in pairs

SYNOPSIS

ComparePackets([keywords TIMESTAMP])

Ports: 2 inputs, 2 outputs
Processing: pull

DESCRIPTION

ComparePackets compares packets pulled from the first input with packets pulled from the second input. Packets are considered different if they have different length, data, header offsets, or timestamp annotations.

Keyword arguments are:

  • TIMESTAMP — Boolean. If true, then ComparePackets will check packet timestamp annotations. Default is true.

ELEMENT HANDLERS

  • diffs (read-only) — Returns the number of different packet pairs seen.
  • diff_details (read-only) — Returns a text file showing how many different packet pairs ComparePackets has seen, subdivided by type of difference.
  • all_same (read-only) — Returns "true" iff all packet pairs seen so far have been identical.

SEE ALSO

PacketTest

Generated by click-elem2man from ../elements/test/comparepackets.hh:8 on 2018/10/03.

Clone this wiki locally