[Click] IPRewriter and ICMP packets

Eddie Kohler kohler at cs.ucla.edu
Sat Jul 31 20:38:22 EDT 2004


Erik VandeKieft wrote:
> Hmmm. Actually, now that I think about it, I guess I could have been using
> just an IPAddrRewriter rather than an IPRewriter all this time, since I
> never translate any ports. I can always look up my mappings based on just
> the source and destination IP address.
> 
> Since that doesn't look at ports, couldn't that work with ICMP ping
> packets? The ICMPPingRewriter as its written still isn't enough because it
> wants a static NEWSRC and NEWDST; I at least want it to look in the table
> of an IPAddrRewriter.

Hey Erik,

You may be interested in the new IPAddrPairRewriter element (just checked in 
to CVS), which is probably better suited than IPAddrRewriter or IPRewriter for 
your needs.

Eddie


More information about the click mailing list