Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 4 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 2017/10/17.

Clone this wiki locally