ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

MPLSAddressClassifier Class Reference

#include <classifier-addr-mpls.h>

Inheritance diagram for MPLSAddressClassifier:

AddressClassifier Classifier NsObject TclObject Handler List of all members.

Public Member Functions

 MPLSAddressClassifier ()
virtual int command (int argc, const char *const *argv)

Static Public Attributes

int ordered_control_ = 0
int on_demand_ = 0

Protected Member Functions

virtual void install (int slot, NsObject *target)
virtual int classify (Packet *p)
int MPLSclassify (Packet *p)
int processIP ()
int processLabelP ()
int convertL2toL2 (int iLabel, int oIface, int oLabel, int LIBptr)
int convertL3toL2 (int oIface, int oLabel, int LIBptr)
void GetIPInfo (Packet *p, ns_addr_t &dstaddr, int &phb, int &srcnode)
hdr_mplscheckTTL (hdr_mpls *shimhdr)
hdr_mplsGetShimHeader (Packet *p)
hdr_mplsDelAllShimHeader (hdr_mpls *shimhdr)
hdr_mplspush (hdr_mpls *shimhdr, int oLabel)
hdr_mplspop (hdr_mpls *shimhdr)
void swap (hdr_mpls *shimhdr, int oLabel)
void PFTinsert (int FEC, int PHB, int LIBptr)
void PFTdelete (int entrynb)
void PFTdeleteLIBptr (int LIBptr)
void PFTupdate (int entrynb, int LIBptr)
int PFTlocate (int FEC, int PHB, int &LIBptr)
int PFTlookup (int FEC, int PHB, int &oIface, int &oLabel, int &LIBptr)
void ERBinsert (int LSPid, int FEC, int LIBptr)
void ERBdelete (int entrynb)
void ERBupdate (int entrynb, int LIBptr)
int ERBlocate (int LSPid, int FEC, int &LIBptr)
int LIBinsert (int iIface, int iLabel, int oIface, int oLabel)
int LIBisdeleted (int entrynb)
void LIBupdate (int entrynb, int iIface, int iLabel, int oIface, int oLabel)
int LIBlookup (int entrynb, int &oIface, int &oLabel, int &LIBptr)
int LIBlookup (int iIface, int iLabel, int &oIface, int &oLabel, int &LIBptr)
int LIBgetIncoming (int entrynb, int &iIface, int &iLabel)
int ErLspBinding (int FEC, int PHB, int erFEC, int LSPid)
int ErLspStacking (int erFEC0, int erLSPid0, int erFEC, int erLSPid)
int FlowAggregation (int fineFEC, int finePHB, int coarseFEC, int coarsePHB)
int aPathBinding (int FEC, int PHB, int erFEC, int LSPid)
int aPathLookup (int FEC, int PHB, int &oIface, int &oLabel, int &LIBptr)
int is_link_down (int node)
int do_reroute (Packet *p)
void PFTdump (const char *id)
void ERBdump (const char *id)
void LIBdump (const char *id)
void trace (char *ptype, int psize, int ilabel, char *op, int oiface, int olabel, int ttl)
virtual void delay_bind_init_all ()
virtual int delay_bind_dispatch (const char *, const char *, TclObject *)

Protected Attributes

int size_
int ttl_
int label_
int enable_reroute_
int reroute_option_
int trace_mpls_

Private Attributes

int data_driven_
int control_driven_
LIB LIB_
PFT PFT_
ERB ERB_
PktInfo PI_

Constructor & Destructor Documentation

MPLSAddressClassifier::MPLSAddressClassifier  
 


Member Function Documentation

int MPLSAddressClassifier::aPathBinding int    FEC,
int    PHB,
int    erFEC,
int    LSPid
[protected]
 

int MPLSAddressClassifier::aPathLookup int    FEC,
int    PHB,
int &    oIface,
int &    oLabel,
int &    LIBptr
[protected]
 

hdr_mpls * MPLSAddressClassifier::checkTTL hdr_mpls   shimhdr [protected]
 

int MPLSAddressClassifier::classify Packet   p [protected, virtual]
 

Reimplemented from AddressClassifier.

int MPLSAddressClassifier::command int    argc,
const char *const *    argv
[virtual]
 

Reimplemented from Classifier.

int MPLSAddressClassifier::convertL2toL2 int    iLabel,
int    oIface,
int    oLabel,
int    LIBptr
[protected]
 

int MPLSAddressClassifier::convertL3toL2 int    oIface,
int    oLabel,
int    LIBptr
[protected]
 

hdr_mpls * MPLSAddressClassifier::DelAllShimHeader hdr_mpls   shimhdr [protected]
 

int MPLSAddressClassifier::delay_bind_dispatch const char *   ,
const char *   ,
TclObject  
[protected, virtual]
 

Reimplemented from NsObject.

void MPLSAddressClassifier::delay_bind_init_all   [protected, virtual]
 

Reimplemented from NsObject.

int MPLSAddressClassifier::do_reroute Packet   p [protected]
 

void MPLSAddressClassifier::ERBdelete int    entrynb [protected]
 

void MPLSAddressClassifier::ERBdump const char *    id [protected]
 

void MPLSAddressClassifier::ERBinsert int    LSPid,
int    FEC,
int    LIBptr
[protected]
 

int MPLSAddressClassifier::ERBlocate int    LSPid,
int    FEC,
int &    LIBptr
[protected]
 

void MPLSAddressClassifier::ERBupdate int    entrynb,
int    LIBptr
[protected]
 

int MPLSAddressClassifier::ErLspBinding int    FEC,
int    PHB,
int    erFEC,
int    LSPid
[protected]
 

int MPLSAddressClassifier::ErLspStacking int    erFEC0,
int    erLSPid0,
int    erFEC,
int    erLSPid
[protected]
 

int MPLSAddressClassifier::FlowAggregation int    fineFEC,
int    finePHB,
int    coarseFEC,
int    coarsePHB
[protected]
 

void MPLSAddressClassifier::GetIPInfo Packet   p,
ns_addr_t   dstaddr,
int &    phb,
int &    srcnode
[protected]
 

hdr_mpls * MPLSAddressClassifier::GetShimHeader Packet   p [protected]
 

void MPLSAddressClassifier::install int    slot,
NsObject   target
[protected, virtual]
 

Reimplemented from Classifier.

int MPLSAddressClassifier::is_link_down int    node [protected]
 

void MPLSAddressClassifier::LIBdump const char *    id [protected]
 

int MPLSAddressClassifier::LIBgetIncoming int    entrynb,
int &    iIface,
int &    iLabel
[protected]
 

int MPLSAddressClassifier::LIBinsert int    iIface,
int    iLabel,
int    oIface,
int    oLabel
[protected]
 

int MPLSAddressClassifier::LIBisdeleted int    entrynb [protected]
 

int MPLSAddressClassifier::LIBlookup int    iIface,
int    iLabel,
int &    oIface,
int &    oLabel,
int &    LIBptr
[protected]
 

int MPLSAddressClassifier::LIBlookup int    entrynb,
int &    oIface,
int &    oLabel,
int &    LIBptr
[protected]
 

void MPLSAddressClassifier::LIBupdate int    entrynb,
int    iIface,
int    iLabel,
int    oIface,
int    oLabel
[protected]
 

int MPLSAddressClassifier::MPLSclassify Packet   p [protected]
 

void MPLSAddressClassifier::PFTdelete int    entrynb [protected]
 

void MPLSAddressClassifier::PFTdeleteLIBptr int    LIBptr [protected]
 

void MPLSAddressClassifier::PFTdump const char *    id [protected]
 

void MPLSAddressClassifier::PFTinsert int    FEC,
int    PHB,
int    LIBptr
[protected]
 

int MPLSAddressClassifier::PFTlocate int    FEC,
int    PHB,
int &    LIBptr
[protected]
 

int MPLSAddressClassifier::PFTlookup int    FEC,
int    PHB,
int &    oIface,
int &    oLabel,
int &    LIBptr
[protected]
 

void MPLSAddressClassifier::PFTupdate int    entrynb,
int    LIBptr
[protected]
 

hdr_mpls * MPLSAddressClassifier::pop hdr_mpls   shimhdr [protected]
 

int MPLSAddressClassifier::processIP   [protected]
 

int MPLSAddressClassifier::processLabelP   [protected]
 

hdr_mpls * MPLSAddressClassifier::push hdr_mpls   shimhdr,
int    oLabel
[protected]
 

void MPLSAddressClassifier::swap hdr_mpls   shimhdr,
int    oLabel
[inline, protected]
 

void MPLSAddressClassifier::trace char *    ptype,
int    psize,
int    ilabel,
char *    op,
int    oiface,
int    olabel,
int    ttl
[protected]
 


Member Data Documentation

int MPLSAddressClassifier::control_driven_ [private]
 

int MPLSAddressClassifier::data_driven_ [private]
 

int MPLSAddressClassifier::enable_reroute_ [protected]
 

ERB MPLSAddressClassifier::ERB_ [private]
 

int MPLSAddressClassifier::label_ [protected]
 

LIB MPLSAddressClassifier::LIB_ [private]
 

int MPLSAddressClassifier::on_demand_ = 0 [static]
 

int MPLSAddressClassifier::ordered_control_ = 0 [static]
 

PFT MPLSAddressClassifier::PFT_ [private]
 

PktInfo MPLSAddressClassifier::PI_ [private]
 

int MPLSAddressClassifier::reroute_option_ [protected]
 

int MPLSAddressClassifier::size_ [protected]
 

int MPLSAddressClassifier::trace_mpls_ [protected]
 

int MPLSAddressClassifier::ttl_ [protected]
 


The documentation for this class was generated from the following files:
This document is generated by doxygen.