This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

Print Element Documentation

NAME

Print -- Click element; prints packet contents

SYNOPSIS

Print([LABEL, MAXLENGTH, keywords])

Ports: 1 input, 1 output
Processing: agnostic
Package: standard (core)

DESCRIPTION

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])". Defaut is false.
ACTIVE
Boolean. If false, don't print messages. Default is true.

ELEMENT HANDLERS

active (read/write)
Returns or sets the ACTIVE parameter.

SEE ALSO

IPPrint

Generated by 'click-elem2man' from '../elements/standard/print.hh' on 28/Feb/2010.

COMMENTS

 
elements/print.txt · Last modified: 2010/02/28 13:58 (external edit)
 
Recent changes RSS feed Driven by DokuWiki