This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
Classifier -- Click element; classifies packets by contents
Classifier(pattern1, ..., patternN)
Ports: 1 input, any number of outputs
Package: standard (core)
Classifies packets. The Classifier has N outputs, each associated with the corresponding pattern from the configuration string. A pattern is a set of clauses, where each clause is either "offset/value" or "offset/value%mask". A pattern matches if the packet has the indicated value at each offset. The clauses in each pattern are separated by spaces. A clause consists of the offset, "/", the value, and (optionally) "%" and a mask. The offset is in decimal. The value and mask are in hex. The length of the value is implied by the number of hex digits, which must be even. "?" is also allowed as a "hex digit"; it means "don't care about the value of this nibble". If present, the mask must have the same number of hex digits as the value. The matcher will only check bits that are 1 in the mask. A clause may be preceded by "!", in which case the clause must NOT match the packet. As a special case, a pattern consisting of "-" matches every packet. The patterns are scanned in order, and the packet is sent to the output corresponding to the first matching pattern. Thus more specific patterns should come before less specific ones. You will get a warning if no packet could ever match a pattern. Usually, this is because an earlier pattern is more general, or because your pattern is contradictory (`12/0806 12/0800').
Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
creates an element with four outputs intended to process Ethernet packets. ARP requests are sent to output 0, ARP replies are sent to output 1, IP packets to output 2, and all others to output 3.
Generated by 'click-elem2man' from '../elements/standard/classifier.hh:7' on 12/Jul/2011.