[Click Modular Router] Protocol implementation tutorial - part 3 DummyClassifier
The DummyClassifier element follow this dead simple algorithm:
Of course this assumes that the packet have the annotation set. Note that we use a PUSH port processing with 3 outputs.
Therefore the code pretty much writes it-self: