-
Notifications
You must be signed in to change notification settings - Fork 81
Discard
Tom Barbette edited this page Oct 3, 2018
·
2 revisions
Discard — Click element; drops all packets
Discard([keywords ACTIVE, BURST])
Batching: Batching natively supported
Ports: 1 input, no outputs
Processing: agnostic
Discards all packets received on its single input. If used in a pull context, it initiates pulls whenever packets are available, and listens for activity notification, such as that available from Queue.
Keyword arguments are:
- ACTIVE — Boolean. If false, then Discard does not pull packets. Default is true. Only meaningful in pull context.
- BURST — Unsigned. Number of packets to pull per scheduling. Default is 1. Only meaningful in pull context.
- active (read/write) — Returns or sets the ACTIVE parameter. Only present if Discard is in pull context.
- count (read-only) — Returns the number of packets discarded.
- reset_counts (write-only) — Resets "count" to 0.
Generated by click-elem2man from ../elements/standard/discard.hh:8
on 2018/10/03.