-
Notifications
You must be signed in to change notification settings - Fork 83
CheckIP6Header
Tom Barbette edited this page May 7, 2020
·
3 revisions
CheckIP6Header — Click element;
CheckIP6Header([BADADDRS, OFFSET])
Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push
Expects IP6 packets as input starting at OFFSET bytes. Default OFFSET is zero. Checks that the packet's length is reasonable, and that the IP6 version, length, are valid. Checks that the IP6 source address is a legal unicast address. Shortens packets to the IP6 length, if the IP length is shorter than the nominal packet length (due to Ethernet padding, for example). Pushes invalid packets out on output 1, unless output 1 was unused; if so, drops invalid packets.
Keyword arguments are:
- BADADDRS — The BADADDRS argument is a space-separated list of IP6 addresses that are not to be tolerated as source addresses. 0::0 is a bad address for routers, for example, but okay for link local packets.
- OFFSET — Unsigned integer. Byte position at which the IP6 header begins. Default is 0.
- count (read-only) — Returns the number of correct packets CheckIP6Header has seen.
- drops (read-only) — Returns the number of incorrect packets CheckIP6Header has seen.
Generated by click-elem2man from ../elements/ip6/checkip6header.hh:8
on 2020/05/07.