dsdv.cc File Reference

#include <stdarg.h>
#include <float.h>
#include "dsdv.h"
#include "priqueue.h"
#include <random.h>
#include <cmu-trace.h>
#include <address.h>
#include <mobilenode.h>

Include dependency graph for dsdv.cc:

Go to the source code of this file.

Data Structures

class  DSDVClass
class  DSDVTriggerHandler

Defines

#define DSDV_ALMOST_NOW   0.1
#define DSDV_BROADCAST_JITTER   0.01
#define DSDV_MIN_TUP_PERIOD   1.0
#define DSDV_STARTUP_JITTER   2.0
#define IP_DEF_TTL   32

Functions

static double jitter (double max, int be_random_)
static void mac_callback (Packet *p, void *arg)

Variables

DSDVClass class_dsdv


Define Documentation

#define DSDV_ALMOST_NOW   0.1
 

Definition at line 56 of file dsdv.cc.

#define DSDV_BROADCAST_JITTER   0.01
 

Definition at line 59 of file dsdv.cc.

Referenced by DSDVTriggerHandler::handle(), DSDV_Agent::helper_callback(), and DSDV_Agent::sendOutBCastPkt().

#define DSDV_MIN_TUP_PERIOD   1.0
 

Definition at line 60 of file dsdv.cc.

Referenced by DSDVTriggerHandler::handle().

#define DSDV_STARTUP_JITTER   2.0
 

Definition at line 54 of file dsdv.cc.

Referenced by DSDV_Agent::startUp().

#define IP_DEF_TTL   32
 

Definition at line 61 of file dsdv.cc.


Function Documentation

static double jitter double  max,
int  be_random_
[inline, static]
 

Definition at line 71 of file dsdv.cc.

References Random::uniform().

Referenced by DSDVTriggerHandler::handle(), DSDV_Agent::helper_callback(), MacSimple::send(), DSDV_Agent::sendOutBCastPkt(), and DSDV_Agent::startUp().

00072 {
00073   return (be_random_ ? Random::uniform(max) : 0);
00074 }

Here is the call graph for this function:

static void mac_callback Packet p,
void *  arg
[static]
 

Definition at line 416 of file dsdv.cc.

Referenced by DSDV_Agent::forwardPacket().

00417 {
00418   ((DSDV_Agent *) arg)->lost_link (p);
00419 }


Variable Documentation

DSDVClass class_dsdv [static]
 


Generated on Tue Mar 6 16:52:16 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6