#include <IClassifier.h>
Inheritance diagram for IClassifier:
A known sub-interface is IRSVPClassifier.
Known concrete classifier classes are the LDP module class and (via IRSVPClassifier) RSVP_TE's SimpleClassifier module class.
Public Member Functions | |
virtual | ~IClassifier () |
virtual bool | lookupLabel (IPDatagram *ipdatagram, LabelOpVector &outLabel, std::string &outInterface, int &color)=0 |
virtual bool IClassifier::lookupLabel | ( | IPDatagram * | ipdatagram, | |
LabelOpVector & | outLabel, | |||
std::string & | outInterface, | |||
int & | color | |||
) | [pure virtual] |
The ipdatagram argument is an input parameter, the rest (outLabel, outInterface, color) are output parameters only.
In subclasses, this function should be implemented to determine the forwarding equivalence class for the IP datagram passed, and map it to an outLabel and outInterface.
The color parameter (which can be set to an arbitrary value) will only be used for the NAM trace if one will be recorded.
Implemented in LDP, and SimpleClassifier.