-
Notifications
You must be signed in to change notification settings - Fork 321
Pieter Hendriks edited this page Nov 15, 2018
·
5 revisions
Print — Click element; prints packet contents
Print([LABEL, MAXLENGTH, keywords])
Ports: 1 input, 1 output
Processing: agnostic
Prints up to MAXLENGTH bytes of data from each packet, in hex, preceded by the LABEL text. Default MAXLENGTH is 24.
Keyword arguments are:
- MAXLENGTH — Maximum number of content bytes to print. If negative, print entire packet. Default is 24.
- CONTENTS — Determines whether the packet data is printed. May be `NONE' (do not print packet data), `HEX' (print packet data in hexadecimal), or `ASCII' (print packet data in plaintext). Default is `HEX'.
- TIMESTAMP — Boolean. If true, prints each packet's timestamp in seconds since 1970. Default is false.
- PRINTANNO — Boolean. If true, prints each packet's user annotation bytes. Default is false.
- CPU — Boolean; available only in the Linux kernel module. If true, prints the current CPU ID for every packet. Default is false.
- HEADROOM — Boolean. If true, prints each packet's headroom and tailroom, in the format "(h[headroom] t[tailroom])". Default is false.
- ACTIVE — Boolean. If false, don't print messages. Default is true.
- active (read/write) — Returns or sets the ACTIVE parameter.
Generated by click-elem2man from ../../elements/standard/print.hh:7
on 2017/10/17.