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  

ns-2/queue/dsr-priqueue.h File Reference

#include <object.h>
#include <queue.h>
#include <drop-tail.h>
#include <packet.h>
#include "lib/bsd-list.h"
#include <cmu-trace.h>

Compounds

class  CMUPriQueue
class  CMUPriQueueHandler
struct  ifqueue

Defines

#define IFQ_MAXLEN   50
#define IF_QFULL(ifq)   ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
#define IF_DROP(ifq)   ((ifq)->ifq_drops++)
#define IF_ENQUEUE(ifq, p)
#define IF_DEQUEUE(ifq, p)
#define IFQ_RTPROTO   0
#define IFQ_REALTIME   1
#define IFQ_LOWDELAY   2
#define IFQ_NORMAL   3
#define IFQ_MAX   4

Typedefs

typedef int(* PacketFilter )(Packet *, void *)

Define Documentation

#define IF_DEQUEUE ifq,
 
 

Value:

{                                       \
        (p) = (ifq)->ifq_head;                                  \
        if (p) {                                                \
                if (((ifq)->ifq_head = (p)->next_) == 0)        \
                        (ifq)->ifq_tail = 0;                    \
                (p)->next_ = 0;                                 \
                (ifq)->ifq_len--;                               \
        }                                                       \
}

#define IF_DROP ifq       ((ifq)->ifq_drops++)
 

#define IF_ENQUEUE ifq,
 
 

Value:

{                                       \
        (p)->next_ = 0;                                         \
        if ((ifq)->ifq_tail == 0)                               \
                (ifq)->ifq_head = p;                            \
        else                                                    \
                (ifq)->ifq_tail->next_ = (p);                   \
        (ifq)->ifq_tail = (p);                                  \
        (ifq)->ifq_len++;                                       \
}

#define IF_QFULL ifq       ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
 

#define IFQ_LOWDELAY   2
 

#define IFQ_MAX   4
 

#define IFQ_MAXLEN   50
 

#define IFQ_NORMAL   3
 

#define IFQ_REALTIME   1
 

#define IFQ_RTPROTO   0
 


Typedef Documentation

typedef int(* PacketFilter)(Packet *, void *)
 


This document is generated by doxygen.