strange behaviour

Werner Raetscher werner.raetscher at mchp.siemens.de
Fri Jun 29 10:13:07 EDT 2001


Hello Eddie,

Thanks a lot for your configuration hints. I've added the MarkIPHeader(14).
Now it works perfectly. I should have read the manual more carefully :)

You are right. Before this the configuration crashed twice the machine.

Regards,
Werner

Eddie Kohler wrote:

> Hi Werner,
>
> You have put your finger on the problem :)
>
> > If I bypass the IPClassifier and put both flows in one Counter and
> > one Discard, it works. The click-install doesn't report any problems. Is
> > there a supplementary element needed (e.g. CheckIPHeader)?
>
> The important bit of the IPClassifier manual here is:
>
>     The input packets must have their IP header annotation set;
>     CheckIPHeader(n) and MarkIPHeader(n) do this.
>
> You don't have either of these elements. Therefore, the IP header
> annotation is not set, and your configuration won't work -- it may even
> crash your machine with a null pointer dereference.
>
> I would suggest changing this line
>
> >   class[1]
> >  -> class1;
>
> to
>
>     class[1]
>    -> MarkIPHeader(14)          // 14 == skip Ethernet header
>    -> class1;
>
> ... except that this will catch non-IP packets such as ARP responses,
> because of your Classifier. A better configuration string for your
> Classifier is
>
>     class :: Classifier(12/0806 20/0001, 12/0800);
>
> love,
> ed




More information about the click mailing list