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

Null Element Documentation

NAME

Null — Click element; null element: passes packets unchanged

SYNOPSIS

Null

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 2017/10/17.

Clone this wiki locally