[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

the Classifier/Flow




a few people have asked about Classifier/Flow which
went away for the most recent release.  The example
script tcl/ex/fq.tcl used this classifier and people
therefore had trouble using it.  Below is a diff for tcl/ex/fq.tcl
indicating how to convert things using Classifier/Flow to the hash
classifier.  The new fq.tcl and fq-cbr.tcl should be available in
tonight's snapshot.

- K


49c49
< Class Classifier/Flow/FQ -superclass Classifier/Flow
---
> Class Classifier/Hash/Fid/FQ -superclass Classifier/Hash/Fid
51c51
< Classifier/Flow/FQ instproc no-slot flowID {
---
> Classifier/Hash/Fid/FQ instproc unknown-flow { src dst fid buck } {
53c53
<       $fq_ new-flow $flowID
---
>       $fq_ new-flow $src $dst $fid
71c71
<       set classifier_ [new Classifier/Flow/FQ]
---
>       set classifier_ [new Classifier/Hash/Fid/FQ 33]
101c101
< FQLink instproc new-flow flowID {
---
> FQLink instproc new-flow { src dst fid } {
115c115,116
<       $classifier_ install $flowID $q
---
>       set slot [$classifier_ installNext $q]
>       $classifier_ set-hash auto $src $dst $fid $slot
117c118
<       $queue_ install $flowID $q
---
>       $queue_ install $fid $q