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

PacketLogger2 Element Documentation

NAME

PacketLogger2 — Click element; Log packets for later dumping/analysis.

SYNOPSIS

PacketLogger2(KEYWORKDS)

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

PacketLogger2 records the size, timestamp, user annotations, and the first few bytes of every packet to pass through. The list of recorded data can be dumped (and cleared) by repeated calls to the read handler 'log'.

Keyword arguments are:

  • NBYTES — Unsigned integer. Number of bytes of each packet to record. Defaults to 34 bytes.

ELEMENT HANDLERS

  • log (read-only) — Print as much of the list of logged packets as possible, clearing printed packets from the log.

Generated by click-elem2man from ../elements/grid/packetlogger2.hh:9 on 2018/10/03.

Clone this wiki locally