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  

HashClassifier Class Reference

#include <classifier-hash.h>

Inheritance diagram for HashClassifier:

Classifier NsObject TclObject Handler DestHashClassifier FidHashClassifier SrcDestFidHashClassifier SrcDestHashClassifier List of all members.

Public Member Functions

 HashClassifier (int keylen)
 ~HashClassifier ()
virtual int classify (Packet *p)
virtual int lookup (Packet *p)
virtual int unknown (Packet *p)
void set_default (int slot)
int do_set_hash (nsaddr_t src, nsaddr_t dst, int fid, int slot)
void set_table_size (int nn)

Protected Member Functions

int lookup (nsaddr_t src, nsaddr_t dst, int fid)
int newflow (Packet *pkt)
void reset ()
virtual const char * hashkey (nsaddr_t, nsaddr_t, int)=0
int set_hash (nsaddr_t src, nsaddr_t dst, int fid, int slot)
int get_hash (nsaddr_t src, nsaddr_t dst, int fid)
virtual int command (int argc, const char *const *argv)

Protected Attributes

int default_
Tcl_HashTable ht_
hkey buf_
int keylen_

Constructor & Destructor Documentation

HashClassifier::HashClassifier (  int    keylen )  [inline]
 

HashClassifier::~HashClassifier (    )  [inline]
 


Member Function Documentation

int HashClassifier::classify (  Packet *    p )  [virtual]
 

Reimplemented from Classifier.

Reimplemented in DestHashClassifier.

int HashClassifier::command (  int    argc,
const char *const *    argv
)  [protected, virtual]
 

Reimplemented from Classifier.

Reimplemented in DestHashClassifier.

int HashClassifier::do_set_hash (  nsaddr_t    src,
nsaddr_t    dst,
int    fid,
int    slot
)  [inline]
 

int HashClassifier::get_hash (  nsaddr_t    src,
nsaddr_t    dst,
int    fid
)  [inline, protected]
 

virtual const char* HashClassifier::hashkey (  nsaddr_t   ,
nsaddr_t   ,
int   
)  [protected, pure virtual]
 

Implemented in SrcDestFidHashClassifier, SrcDestHashClassifier, FidHashClassifier, and DestHashClassifier.

int HashClassifier::lookup (  nsaddr_t    src,
nsaddr_t    dst,
int    fid
)  [inline, protected]
 

virtual int HashClassifier::lookup (  Packet *    p )  [inline, virtual]
 

int HashClassifier::newflow (  Packet *    pkt )  [inline, protected]
 

void HashClassifier::reset (    )  [inline, protected, virtual]
 

Reimplemented from NsObject.

void HashClassifier::set_default (  int    slot )  [inline]
 

int HashClassifier::set_hash (  nsaddr_t    src,
nsaddr_t    dst,
int    fid,
int    slot
)  [inline, protected]
 

void HashClassifier::set_table_size (  int    nn )  [inline]
 

Reimplemented from Classifier.

virtual int HashClassifier::unknown (  Packet *    p )  [inline, virtual]
 


Member Data Documentation

hkey HashClassifier::buf_ [protected]
 

int HashClassifier::default_ [protected]
 

Tcl_HashTable HashClassifier::ht_ [protected]
 

int HashClassifier::keylen_ [protected]
 


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