[click] element alignment

Eddie Kohler kohler at icir.org
Tue Apr 2 22:16:35 EST 2002


> How can I tell click-align what alignments my element wants and
> produces?  is the only way to edit click-align.cc?

Currently, that's the only way :(

> i think this is because one of LookupLocalGridRoute's outputs feeds
> into CheckIPHeader -- i think that click-align wants CheckIPHeader to
> have 4/0 alignment, and is pushing the alignment change up to in front
> of my element.

That is right.

> But my element's ouputs are the right alignment anyway.  i.e. packets
> leaving my element to go to CheckIPHeader etc. are 4/0 aligned,
> because my element does the equivalent of a Strip inside it.

I would then add something like this to click-align.cc, function
prepare_classes():

  ElementClassT::set_default_class(new AlignClass("LookupLocalGridRoute",
				   new ShifterAligner(14)));

More information upon request!
Eddie




More information about the click mailing list