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

[ns] Classifiers



*I sent this before, but I don't see it in the archive.*

Hi,
  This is a FAQ, but I haven't been able to find the answer. I am trying to
override the recv() method of the AddressClassifier. I derived a new C++
class from the address classifier. The only method defined is recv() which
is just calling AddressClassifier::recv(). I set up a new Tcl class
Classifier/Addr/my and haven't been able to get any further. When I set
classifier_ in Tcl to [new Classifier/Addr/my]  all the packets get dropped.

I've seen a couple of references to this in the archives, but haven't been
able to find a solution. Does anyone have some example Tcl code for changing
the classifier?

Thanks,
  Adrian