**This is automatically generated documentation.** Edit after the "[[#COMMENTS|COMMENTS]]" heading; changes to the main body will be lost. ====== CheckAverageLength Element Documentation ====== ===== NAME ===== **CheckAverageLength** -- Click element; splits a flow of packets depending on their average length. ===== SYNOPSIS ===== CheckAverageLength(MIN) **Ports**: 1 input, 2 outputs\\ **Processing**: Push\\ **Drivers**: linuxmodule\\ **Package**: unibo_qos\\ ===== DESCRIPTION ===== CheckAverageLength splits packets depending on the average length of the last ELM packets received. Only if packets' average lenght is less than the value of min, they get out from output port 1 (thus they could pertain to a real-time flow), from port 0 otherwise. (ELM = 15 packets). ===== EXAMPLES ===== elementclass class_stat { $first, $av_length, $av_rate, $dscp | split::SplitFirst($first); check_length::CheckAverageLength($av_length); check_rate::Meter($av_rate); set::SetIPDSCP($dscp); input->split; split[1]->[1]output; split[0]->check_length; check_length[0]->[2]output; check_length[1]->check_rate; check_rate[0]->[3]output; check_rate[1]->set->[0]output; } In the above example, CheckAverageLength is used in combination with the [[SplitFirst]], [[Meter]] and [[SetIPDSCP]] elements to hook a real-time (not-RTP) flow and mark its packets' DSCP field. ===== ELEMENT HANDLERS ===== ? **min ((write-only))** ! Minimum average length (in bytes) of packets to filter out. ===== SEE ALSO ===== [[SplitFirst]], [[Meter]], [[SetIPDSCP]] Generated by 'click-elem2man' from 'package/checkaveragelength.hh' on 19/May/2006. ===== COMMENTS =====