-
Notifications
You must be signed in to change notification settings - Fork 82
Tom Barbette edited this page Nov 25, 2022
·
4 revisions
Pad — Click element; extend packet length
Pad([LENGTH, keyword ZERO])
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic
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.
- RANDOM — Boolean. If true, the added data is randomized. Exclusive with ZERO. Default is false.
- MAXLENGTH — Int. If >0, it specifies the maximum length that a packet can have after padding. If the final length would be higher than this, the packet will be truncated to MAXLENGTH
Generated by click-elem2man from ../elements/standard/pad.hh:7
on 2020/05/07.