Skip to content
Tom Barbette edited this page Jul 28, 2023 · 3 revisions

ARPAdvertiser Element Documentation

NAME

ARPAdvertiser — Click element; periodically generates ARP replies using information from an ARP table

SYNOPSIS

ARPAdvertiser([DSTIP, DSTETH, SRCIP, SRCETH, CAPACITY])

Batching: Batching natively supported
Ports: no inputs, 1 output
Processing: push

DESCRIPTION

For each entry in its ARP table, it periodically sends an ARP "reply" packet to DSTIP/DSTETH, claiming that SRCIP has ethernet address SRCETH. Generates the Ethernet header as well as the ARP header. The ARP table can be populated/evacuated through insert/delete/clean handlers.

EXAMPLES

Sends ARP packets to 18.26.4.1 (with ether addr 00-E0-2B-0B-1A-00) claiming that 18.26.4.99's ethernet address is 00-A0-C9-9C-FD-9C.

  ARPAdvertiser(DSTIP 18.26.4.1, DSTETH 0:e0:2b:b:1a:0, SRCIP 18.26.4.99, SRCETH 00:a0:c9:9c:fd:9c)
     -> ToDevice(eth0);

NOTES

ARPAdvertiser is useful for ARP proxies. Normally, you should use ARPResponder rather than ARPAdvertiser.

ELEMENT HANDLERS

  • table (read-only) — Returns the current ARP table.
  • count (read-only) — Returns the current number of ARP table entries.
  • capacity (read-only) — Returns the current capacity of the ARP table.
  • insert (write-only) — Inserts a new entry in the ARP table.
  • delete (write-only) — Deletes an entry from the ARP table.

SEE ALSO

ARPFaker, ARPQuerier, ARPResponder

Generated by click-elem2man from ../elements/ethernet/arpadvertiser.hh:13 on 2023/07/28.

Clone this wiki locally