-
Notifications
You must be signed in to change notification settings - Fork 321
CheckARPHeader
Eddie Kohler edited this page Oct 17, 2017
·
4 revisions
CheckARPHeader — Click element; checks ARP header
CheckARPHeader([OFFSET, keywords OFFSET, VERBOSE, DETAILS])
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push
Input packets should have ARP headers starting OFFSET bytes in. Default OFFSET is zero. Checks that the packet's length is reasonable.
CheckARPHeader emits valid packets on output 0. Invalid packets are pushed out on output 1, unless output 1 was unused; if so, drops invalid packets.
CheckARPHeader prints a message to the console the first time it encounters an incorrect ARP packet (but see VERBOSE below).
Keyword arguments are:
- OFFSET — Unsigned integer. Byte position at which the ARP header begins. Default is 0.
- 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 CheckARPHeader will maintain detailed counts of
how many packets were dropped for each possible reason, accessible through the
drop_details
handler. False by default.
- drops (read-only) — Returns the number of incorrect packets CheckARPHeader has seen.
- drop_details (read-only) — Returns a text file showing how many erroneous packets CheckARPHeader has seen, subdivided by error. Only available if the DETAILS keyword argument was true.
ARPPrint, ARPQuerier, ARPResponder, ARPFaker
Generated by click-elem2man from ../elements/ethernet/checkarpheader.hh:7
on 2017/10/17.