IPRewriter problems
Eddie Kohler
kohler at icir.org
Fri Jan 17 15:40:16 EST 2003
> I must be doing something wrong. I'm trying to use IPRewriter
> but when I use the `keep' option but click reports:
>
> input spec 6: syntax error; expected `keep FOUTPUT ROUTPUT'
>
> Of course, this is exactly the syntax I'm using! Has anyone used
> this successfully?
Oh no, WE must be doing something wrong!! Duh. Here is a patch for
elements/ip/iprw.cc. The fix has been checked in as well.
Eddie
diff -u -r1.47 iprw.cc
--- elements/ip/iprw.cc 16 Sep 2002 05:30:50 -0000 1.47
+++ elements/ip/iprw.cc 17 Jan 2003 23:39:47 -0000
@@ -517,7 +517,7 @@
is.u.output = outnum;
} else if (word == "keep") {
- if (cp_va_parse(rest, this, ErrorHandler::silent_handler(),
+ if (cp_va_space_parse(rest, this, ErrorHandler::silent_handler(),
cpUnsigned, "forward output", &is.u.keep.fport,
cpUnsigned, "reverse output", &is.u.keep.rport,
0) < 0)
More information about the click
mailing list