-
Notifications
You must be signed in to change notification settings - Fork 82
ARPTable
Tom Barbette edited this page Oct 3, 2018
·
2 revisions
ARPTable — Click element; stores IP-to-Ethernet mappings
ARPTable(keywords)
Ports: none
The ARPTable element stores IP-to-Ethernet mappings, such as are useful for the ARP protocol. ARPTable is an information element, with no inputs or outputs. ARPQuerier normally encapsulates access to an ARPTable element. A separate ARPTable is useful if several ARPQuerier elements should share a table.
Keyword arguments are:
- CAPACITY — Unsigned integer. The maximum number of saved IP packets the ARPTable will hold at a time. Default is 2048; zero means unlimited.
- ENTRY_CAPACITY — Unsigned integer. The maximum number of ARP entries the ARPTable will hold at a time. Default is zero, which means unlimited.
- ENTRY_PACKET_CAPACITY — Unsigned integer. The maximum number of saved IP packets the ARPTable will hold for any given ARP entry at a time. Default is zero, which means unlimited.
- CAPACITY_SLIM_FACTOR — Unsigned integer. ARPTable removes 1/CAPACITY_SLIM_FACTOR of saved packets on exceeding CAPACITY. Default is 2. Increase for better bounds on the number of saved packets; decrease for better performance under an nmap-style denial-of- service attack.
- TIMEOUT — Time value. The amount of time after which an ARP entry will expire. Default is 5 minutes. Zero means ARP entries never expire.
- table (read-only) — Return a table of the ARP entries. The returned string has four space-separated columns: an IP address, whether the entry is valid (1 means valid, 0 means not), the corresponding Ethernet address, and finally, the amount of time since the entry was last updated.
- drops (read-only) — Return the number of packets dropped because of timeouts or capacity limits.
- insert (write-only) — Add an entry to the table. The format should be "IP ETH".
- delete (write-only) — Delete an entry from the table. The string should consist of an IP address.
- clear (write-only) — Clear the table, deleting all entries.
- count (read-only) — Return the number of entries in the table.
- length (read-only) — Return the number of packets stored in the table.
Generated by click-elem2man from ../elements/ethernet/arptable.hh:12
on 2018/10/03.