Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 2 revisions

Pad Element Documentation

NAME

Pad — Click element; extend packet length

SYNOPSIS

Pad([LENGTH, keyword ZERO])

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Extend packets to at least LENGTH bytes.

If LENGTH is omitted, then input packets are extended to the length indicated by their extra length annotations. Output packets always have extra length annotation zero.

Keyword arguments are:

  • ZERO — Boolean. If true, then set added packet data to zero; if false, then additional packet data is left uninitialized (which might be a security problem). Default is true.

SEE ALSO

Truncate

Generated by click-elem2man from ../elements/standard/pad.hh:7 on 2017/10/17.

Clone this wiki locally