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

RandomBitErrors Element Documentation

NAME

RandomBitErrors — Click element; changes packet data with some probability

SYNOPSIS

RandomBitErrors(P [, KIND, ACTIVE])

Ports: 1 input, 1 output
Processing: agnostic

DESCRIPTION

Change each bit in each packet with probability P. The KIND parameter determines the kind of change. `flip' (the default) flips bits, `set' sets bits to one, and `clear' sets bits to zero.

RandomBitErrors can be active or inactive. It only changes bits when active. It starts out active by default, but if you pass `false' for the ACTIVE parameter, it will start out inactive.

ELEMENT HANDLERS

  • p_bit_error (read/write)

    Returns or sets the P probability parameter.

  • error_kind (read/write)

    Returns or sets the KIND parameter.

  • active (read/write) — Makes the element active or inactive.

SEE ALSO

RandomSample

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

Clone this wiki locally