[Click] How to check even or odd udp or tcp port with IPClassifier

Eddie Kohler kohler at cs.ucla.edu
Wed Dec 6 10:28:00 EST 2006


Classifier can do it, and so can IPFilter/IPCLassifier:

IPClassifier(dst port & 1 == 0, dst port & 1 == 1)

First output port is even, second is odd.

Eddie


Paolo Mailing wrote:
> Hi to all,
> I'd like to distinguish between even port and odd port in udp and tcp flows.
> There's an element which I can use?
> If not, someone knows how to modify IPClassifier or IPFilter or
> Classifier to add this feature.
> Thanks
> Paolo
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list