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

Null Element Documentation

NAME

Null — Click element; null element: passes packets unchanged

SYNOPSIS

Null

Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Emits input packets unchanged.

NOTES

Click supports several null-type elements useful for different purposes.

Placeholder elements help make configurations easier to read by allowing a more natural declaration order. For example, you might say:

  join_point :: Null;
  // packet sources
  src0 :: ...;
  src0 -> join_point;
  src1 :: ...;
  src1 -> join_point;
  // packet sinks
  join_point -> c :: Classifier -> ...;

Null is a reasonable class for placeholder elements, but an empty compound element serves the same purpose without any runtime overhead.

  join_point :: {->};

PushNull and PullNull can be used to force an agnostic configuration to be push or pull, respectively.

Null itself is most useful for benchmarking.

SEE ALSO

PushNull, PullNull

Generated by click-elem2man from ../elements/standard/nullelement.hh:6 on 2018/10/03.

Clone this wiki locally