[Click] click-align gives incorrect output

Eddie Kohler kohler at cs.ucla.edu
Wed Jul 16 11:33:54 EDT 2008


Hi Tom,

I think you might be confused.  In "fromhost_cl[0]" it is allowed to omit the 
"[0]", so your "fromhost_cl[0] -> ARPResponder at 3" connection is still there, 
fourth line from the bottom.  The configuration looks totally valid to me. 
Note that in your input config fromhost_cl[0] -> ... -> tap0 -> fromhost_cl.

Eddie


Tom Parker wrote:
> Click-align (current git head) seems to give rather bizarre results.
> For example, the test config
> 
> tap0 :: KernelTap(1.0.0.1/24) -> fromhost_cl :: Classifier(12/0806, 12/0800);
> fromhost_cl[0] -> ARPResponder(0.0.0.0/0 1:1:1:1:1:1) -> tap0;
> fromhost_cl[1] ->Print(serial ,-1,CONTENTS HEX) -> Discard; // IP packets
> 
> results in the following output when fed into click-align
> 
> # 1 "conf"
> tap0 :: KernelTap(1.0.0.1/24);
> # 1 "conf"
> fromhost_cl :: Classifier(12/0806, 12/0800);
> # 2 "conf"
> ARPResponder at 3 :: ARPResponder(0.0.0.0/0 1:1:1:1:1:1);
> # 3 "conf"
> Print at 4 :: Print(serial ,-1,CONTENTS HEX);
> # 3 "conf"
> Discard at 5 :: Discard;
> # 0 "<click-align>"
> Align at click_align@9 :: Align(4, 0);
> # 0 "<click-align>"
> AlignmentInfo at click_align@10 :: AlignmentInfo(fromhost_cl  4 0);
> # 16 ""
> fromhost_cl [1] -> Print at 4
>     -> Discard at 5;
> fromhost_cl -> ARPResponder at 3
>     -> tap0
>     -> Align at click_align@9
>     -> fromhost_cl;
> 
> Note the complete removal of any mention of fromhost_cl[0], and some
> of that code appears to have been merged onto the front of the
> original first line tap0->fromhost_cl path (see last 4 lines of
> output). This seems very broken to me.
> 
> Ideas anyone?
> 
> Tom Parker
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list