This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
IPAddrRewriter -- Click element; rewrites IP packets' addresses
IPAddrRewriter(INPUTSPEC1, ..., INPUTSPECn)
Ports: 1 or more inputs, 1-256 outputs
Processing: push
Package: ip (core)
Rewrites the source and/or destination addresses on IP packets, along with their checksums. IPAddrRewriter implements the functionality of a network address translator (Basic NAT), where internal hosts are assigned temporary IP addresses as they access the Internet. Basic NAT works for any IP protocol, but the number of internal hosts that can access the Internet simultaneously is limited by the number of external IP addresses available. See also IPRewriter and TCPRewriter, which implement network address/port translation (NAPT). IPAddrRewriter maintains a mapping table that records how addresses are rewritten. On receiving a packet, IPAddrRewriter first looks up that packet in the mapping table by source or destination address. If the table contains a mapping for either address, then the packet is rewritten according to the mapping and emitted on the specified output port. If there was no mapping, the packet is handled by the INPUTSPEC corresponding to the input port on which the packet arrived. (There are as many input ports as INPUTSPECs.) Most INPUTSPECs install new mappings, so that future packets from the same address are handled by the mapping table rather than some INPUTSPEC. The six forms of INPUTSPEC handle input packets as follows:
IPRewriter, IPAddrPairRewriter, TCPRewriter, IPRewriterPatterns, RoundRobinIPMapper, FTPPortMapper, ICMPRewriter, ICMPPingRewriter, StoreIPAddress (for simple uses)
Generated by 'click-elem2man' from '../elements/ip/ipaddrrewriter.hh' on 18/Sep/2007.