IPRewriter and IPMapper

Eddie Kohler kohler at icir.org
Mon Apr 14 14:50:16 EDT 2003


> So it seems as if the IPRewriter is not making any sort of requests to the
> IPMapper.  As a sanity check, I setup this same configuration using a
> RoundRobinIPMapper with a single pattern for null mapping "- - - -", only
> to have the same problem.  If I put patterns directly into IPRewriter, it
> seems to work fine.  Thus, I am led to believe that I am somehow
> misconfiguring the interaction between IPRewriter and an IPMapper.  Can
> anyone confirm my suspicions?  Perhaps my understanding of IPRewriter is
> insufficient?

No the true problem is that I AM AN IDIOT.

Can you tell why? Diff:

Index: elements/ip/iprw.hh
===================================================================
RCS file: /home/am0/click/cvsroot/release/one/elements/ip/iprw.hh,v
retrieving revision 1.25
diff -u -u -w -r1.25 iprw.hh
--- elements/ip/iprw.hh 3 Sep 2002 05:58:51 -0000       1.25
+++ elements/ip/iprw.hh 14 Apr 2003 20:46:09 -0000
@@ -215,7 +215,7 @@
     virtual ~IPMapper()                        { }

     void notify_rewriter(IPRw *, ErrorHandler *);
-    IPRw::Mapping *get_map(IPRw *, int ip_p, const IPFlowID &, Packet *);
+    virtual IPRw::Mapping *get_map(IPRw *, int ip_p, const IPFlowID &, Packet *);

 };

No idea how long that piece of brilliance has been around, but at least
it's fixed now.

Eddie




More information about the click mailing list