This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.
IPClassifier -- Click element; classifies IP packets by contents
IPClassifier(PATTERN_1, ..., PATTERN_N)
Ports: 1 input, any number of outputs
Processing: push
Package: ip (core)
Classifies IP packets according to tcpdump-like patterns. The IPClassifier has N outputs, each associated with the corresponding pattern from the configuration string. The input packets must have their IP header annotation set; CheckIPHeader and MarkIPHeader do this. Patterns are built from pattern primitives. The primitives IPClassifier understands are:
For example,
IPClassifier(10.0.0.0/24 and syn,
10.0.0.0/24 and fin ack,
10.0.0.0/24 and tcp,
-);
creates an element with four outputs. The first three outputs are for TCP packets from net 10.0.0.x. SYN packets are sent to output 0, FIN packets with the ACK bit set to output 1, and all other TCP packets to output 2. The last output is for all other IP packets, and non-TCP packets from net 10.0.0.x.
IPClassifier(dst tcp port 8000 or 8080,
dst tcp port > 1023,
tcp);
creates an element with three outputs. The first output is for TCP packets destined for port 8000 or 8080; the second output is for TCP packets destined for any other user port (that is, port > 1023); and the third output is for all other TCP packets. Non-TCP packets are dropped.
Classifier, IPFilter, CheckIPHeader, MarkIPHeader, CheckIPHeader2, tcpdump(1)
Generated by 'click-elem2man' from '../elements/ip/ipclassifier.hh' on 24/May/2007.