[Click] IPRewriter help needed.

Eddie Kohler kohler at cs.ucla.edu
Sun Nov 4 13:24:00 EST 2007


Vivek,

Send Click messages to the Click mailing list please.

The error message is not correct there, but neither is your configuration. 
You gave 2 arguments, so IPRewriter expects to have 2 input ports.  But it 
does not, it only has one.  So you need to give one argument only, or give 
IPRewriter two input ports by hooking up another device or input source to [1]ipr.

Eddie


VIVEK VIJAYAN wrote:
> Hai,
> 
>     When i tried to compile the following code it is showing some error 
> . can u please help me in solving it ??
> 
> Code:
> 
> fd::FromDevice(eth0);
> ipr::IPRewriter(pattern 192.168.8.200 <http://192.168.8.200> 1234 
> 192.168.8.243 <http://192.168.8.243> 1234 0 1, pattern 192.168.8.200 
> <http://192.168.8.200> 1234 192.168.8.107 <http://192.168.8.107> - 2 3);
> fd->ipr;
>  ipr[0]->q1::Queue(1024)->ToDevice(eth0);
>  ipr[1]->Discard;
>  ipr[2]->q3::Queue(1024)->ToDevice(eth0);
>  ipr[3]->Discard;
> 
> 
> The error  is : While configuring 'ipr :: IPRewriter':   need 2 
> arguments, one per input port
>                        Router could not be initialized!
> I am not sure whether the logic is correct or not. Please help me.
> 
> Thanks,
>   Vivek.
>         



More information about the click mailing list