-
Notifications
You must be signed in to change notification settings - Fork 81
CheckUDPHeader
Tom Barbette edited this page May 7, 2020
·
3 revisions
CheckUDPHeader — Click element; checks UDP header on UDP/IP packets
CheckUDPHeader([KEYWORDS])
Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push
Expects UDP/IP packets as input. Checks that the UDP header length and checksum fields are valid. Pushes invalid packets out on output 1, unless output 1 was unused; if so, drops invalid packets.
Prints a message to the console the first time it encounters an incorrect packet (but see VERBOSE below).
Keyword arguments are:
- VERBOSE — Boolean. If it is true, then a message will be printed for every erroneous packet, rather than just the first. False by default.
- DETAILS —
Boolean. If it is true, then CheckUDPHeader will maintain detailed counts of
how many packets were dropped for each possible reason, accessible through the
drop_details
handler. False by default. - CHECKSUM — Boolean. If it is true, the UDP checksum is validated. True by default.
- count (read-only) — Returns the number of correct packets CheckUDPHeader has seen.
- drops (read-only) — Returns the number of incorrect packets CheckUDPHeader has seen.
- drop_details (read-only) — Returns a text file showing how many erroneous packets CheckUDPHeader has seen, subdivided by error. Only available if the DETAILS keyword argument was true.
CheckIPHeader, CheckTCPHeader, CheckICMPHeader, MarkIPHeader
Generated by click-elem2man from ../elements/tcpudp/checkudpheader.hh:7
on 2020/05/07.