This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
ICMPPingRewriter -- Click element; rewrites ICMP echo requests and replies
ICMPPingRewriter(INPUTSPEC1, ..., INPUTSPECn, keywords DST_ANNO, TIMEOUT)
Package: icmp (core)
Rewrites ICMP echo requests and replies by changing their source and/or destination addresses and ICMP identifiers. This lets pings pass through a NAT gateway. Expects ICMP echo requests and echo replies. Each ICMP echo request is rewritten according to the INPUTSPEC on its input port. The INPUTSPEC may change the packets' addresses. Usually the INPUTSPEC will also specify a source port range, which is used to change echo requests' identifiers. Replies to the rewritten request are also rewritten to look like they were responding to the original request. ICMPPingRewriter optionally changes destination IP address annotations; see the DST_ANNO keyword argument below. ICMPPingRewriter actually keeps a table of mappings. Each mapping changes a given (source address, destination address, identifier) triple into another triple. Say that ICMPPingRewriter receives a request packet with triple (src, dst, ident), and chooses for it a new triple, (src2, dst2, ident2). The rewriter will then store two mappings in the table. The first mapping changes requests (src, dst, ident) into requests (src2, dst2, ident2). The second mapping changes replies (dst2, src2, ident2) into replies (dst, src, ident). Mappings are removed if they go unused for a default of 5 minutes. Unexpected echo replies are dropped unless they arrive on an input with 'pass' INPUTSPEC. Keyword arguments are: Keyword arguments are:
Generated by 'click-elem2man' from '../elements/icmp/icmppingrewriter.hh' on 28/Feb/2010.