INET Framework for OMNeT++/OMNEST
inet::IIngressClassifier Class Referenceabstract

This is an abstract interface for packet classifiers in MPLS ingress routers. More...

#include <IIngressClassifier.h>

Inheritance diagram for inet::IIngressClassifier:
inet::IRsvpClassifier inet::Ldp inet::RsvpClassifier

Public Member Functions

virtual ~IIngressClassifier ()
 
virtual bool lookupLabel (Packet *packet, LabelOpVector &outLabel, std::string &outInterface, int &color)=0
 The packet argument is an input parameter, the rest (outLabel, outInterface, color) are output parameters only. More...
 

Detailed Description

This is an abstract interface for packet classifiers in MPLS ingress routers.

The ~Mpls module holds a pointer to an ~IIngressClassifier object, and uses it to classify Ipv4 datagrams and find the right label-switched path for them.

A known sub-interface is ~IRsvpClassifier.

Known concrete classifier classes are the ~Ldp module class and (via ~IRsvpClassifier) RSVP_TE's RsvpClassifier module class.

Constructor & Destructor Documentation

◆ ~IIngressClassifier()

virtual inet::IIngressClassifier::~IIngressClassifier ( )
inlinevirtual
28 {}

Member Function Documentation

◆ lookupLabel()

virtual bool inet::IIngressClassifier::lookupLabel ( Packet packet,
LabelOpVector outLabel,
std::string &  outInterface,
int &  color 
)
pure virtual

The packet 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 Ipv4 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 inet::Ldp, and inet::RsvpClassifier.


The documentation for this class was generated from the following file: