This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

ARPResponder Element Documentation


ARPResponder -- Click element; generates responses to ARP queries


ARPResponder(IP/MASK [IP/MASK...] ETH, IP2/MASK2 ETH2, ...)

Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push
Package: ethernet (core)


Input should be ARP request packets, including the Ethernet header. Forwards an ARP reply if we know the answer -- that is, if one of the IPPREFIX arguments matches the requested IP address, then it outputs an ARP reply giving the corresponding ETH address, otherwise the ARP request packet is pushed out of output 1 (if it exists). Could be used for proxy ARP as well as producing replies for a host's own address. The IP/MASK arguments are IP network addresses (IP address/netmask pairs). The netmask can be specified in CIDR form (`') or dotted decimal form (`'). ARPResponder sets the device and VLAN TCI annotations on generated ARP responses to the corresponding annotations from the queries.


AddressInfo elements can simplify the arguments to ARPResponder. In particular, if NAME is shorthand for both an IP network address (or IP address) IP and an Ethernet address ETH, then ARPResponder(NAME) is equivalent to ARPResponder(IP ETH). If NAME is short for both an IP address and an IP network address, then ARPResponder will prefer the IP address. (You can say NAME:ipnet to use the IP network address.)


table (read-only)
Return the ARPResponder's current table, with one IP network entry per line.
lookup (read with parameters)
Takes an IP address as a parameter and returns the corresponding Ethernet address, if any.
add (write-only)
Add new entries. Takes a string in "IP/MASK [IP/MASK...] ETH" form.
remove (write-only)
Delete a single entry. Takes a string in "IP/MASK" form; deletes any entry with the same IP and MASK.


Produce ARP replies for the local machine ( as well as proxy ARP for all machines on net 18.26.7 directing their packets to the local machine:

 c :: Classifier(12/0806 20/0001, ...);
 ar :: ARPResponder( 00-00-C0-AE-67-EF);
 c[0] -> ar;
 ar -> ToDevice(eth0);


ARPQuerier, ARPFaker, AddressInfo

Generated by 'click-elem2man' from '../elements/ethernet/arpresponder.hh:9' on 16/Jul/2011.


elements/arpresponder.txt · Last modified: 2011/07/16 22:38 (external edit)
Recent changes RSS feed Driven by DokuWiki