DESERT 3.5.1
Loading...
Searching...
No Matches
sun-ipr-common-structures.h File Reference
#include "packet.h"
#include <iostream>
#include <sstream>
Include dependency graph for sun-ipr-common-structures.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  buffer_element
 

Macros

#define STACK_TRACE   0
 
#define MIN_SNR   -9999.9
 
#define DROP_DEST_UNREACHABLE_REASON    "DUR"
 
#define DROP_PATH_ALREADY_PROCESSED    "PAP"
 
#define DROP_MAX_NUMBER_OF_HOP_IN_LIST_REACHED    "MHR"
 
#define DROP_WRONG_NODE_PATH_EST    "WNP"
 
#define DROP_DATA_HOPS_LENGTH_EQUALS_ZERO    "DHZ"
 
#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_HOP_LIST_FULL    "PSF"
 
#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_ALREADY_PROCESSED    "PSA"
 
#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_WRONG_CHECKSUM    "PWC"
 
#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_NO_ROUTE_TO_DESTINATION    "PNR"
 
#define DROP_PATH_ESTABLISHMENT_ANSWER_PACKET_GARBAGE    "PAG"
 
#define DROP_PATH_ESTABLISHMENT_ANSWER_NODE_ROUTING_TABLE_FULL    "PAF"
 
#define DROP_SINK_PACKET_TYPE_UNSOPPORTED    "SPU"
 
#define DROP_PACKET_NOT_FOR_ME    "PNM"
 
#define DROP_PACKET_WITHOUT_DIRECTION    "PWD"
 
#define DROP_BROKEN_LINK_DROP    "BLD"
 
#define DROP_BUFFER_IS_FULL    "BIF"
 

Typedefs

typedef struct buffer_element buffer_element
 

Variables

static const int MAX_HOP_NUMBER
 
static int sunuid_ = 0
 

Detailed Description

Common structures and definition used by SUN.

Author
Giovanni Toso
Version
1.1.1

Common structures and definition used by SUN

Definition in file sun-ipr-common-structures.h.

Macro Definition Documentation

◆ DROP_BROKEN_LINK_DROP

#define DROP_BROKEN_LINK_DROP    "BLD"

Reason for a drop in a UWSUN module.

Definition at line 86 of file sun-ipr-common-structures.h.

◆ DROP_BUFFER_IS_FULL

#define DROP_BUFFER_IS_FULL    "BIF"

Reason for a drop in a UWSUN module.

Definition at line 88 of file sun-ipr-common-structures.h.

◆ DROP_DATA_HOPS_LENGTH_EQUALS_ZERO

#define DROP_DATA_HOPS_LENGTH_EQUALS_ZERO    "DHZ"

Reason for a drop in a UWSUN module.

Definition at line 58 of file sun-ipr-common-structures.h.

◆ DROP_DEST_UNREACHABLE_REASON

#define DROP_DEST_UNREACHABLE_REASON    "DUR"

Reason for a drop in a UWSUN module.

Definition at line 47 of file sun-ipr-common-structures.h.

◆ DROP_MAX_NUMBER_OF_HOP_IN_LIST_REACHED

#define DROP_MAX_NUMBER_OF_HOP_IN_LIST_REACHED    "MHR"

Reason for a drop in a UWSUN module.

Definition at line 52 of file sun-ipr-common-structures.h.

◆ DROP_PACKET_NOT_FOR_ME

#define DROP_PACKET_NOT_FOR_ME    "PNM"

Reason for a drop in a UWSUN module.

Definition at line 82 of file sun-ipr-common-structures.h.

◆ DROP_PACKET_WITHOUT_DIRECTION

#define DROP_PACKET_WITHOUT_DIRECTION    "PWD"

Reason for a drop in a UWSUN module.

Definition at line 84 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ALREADY_PROCESSED

#define DROP_PATH_ALREADY_PROCESSED    "PAP"

Reason for a drop in a UWSUN module.

Definition at line 50 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_ANSWER_NODE_ROUTING_TABLE_FULL

#define DROP_PATH_ESTABLISHMENT_ANSWER_NODE_ROUTING_TABLE_FULL    "PAF"

Reason for a drop in a UWSUN module.

Definition at line 74 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_ANSWER_PACKET_GARBAGE

#define DROP_PATH_ESTABLISHMENT_ANSWER_PACKET_GARBAGE    "PAG"

Reason for a drop in a UWSUN module.

Definition at line 72 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_ALREADY_PROCESSED

#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_ALREADY_PROCESSED    "PSA"

Reason for a drop in a UWSUN module.

Definition at line 64 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_HOP_LIST_FULL

#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_HOP_LIST_FULL    "PSF"

Reason for a drop in a UWSUN module.

Definition at line 62 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_NO_ROUTE_TO_DESTINATION

#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_NO_ROUTE_TO_DESTINATION    "PNR"

Reason for a drop in a UWSUN module.

Definition at line 68 of file sun-ipr-common-structures.h.

◆ DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_WRONG_CHECKSUM

#define DROP_PATH_ESTABLISHMENT_SEARCH_PACKET_WRONG_CHECKSUM    "PWC"

Reason for a drop in a UWSUN module.

Definition at line 66 of file sun-ipr-common-structures.h.

◆ DROP_SINK_PACKET_TYPE_UNSOPPORTED

#define DROP_SINK_PACKET_TYPE_UNSOPPORTED    "SPU"

Reason for a drop in a UWSUN module.

Definition at line 78 of file sun-ipr-common-structures.h.

◆ DROP_WRONG_NODE_PATH_EST

#define DROP_WRONG_NODE_PATH_EST    "WNP"

Reason for a drop in a UWSUN module.

Definition at line 54 of file sun-ipr-common-structures.h.

◆ MIN_SNR

#define MIN_SNR   -9999.9

Reference variable for min values for the SNR.

Definition at line 44 of file sun-ipr-common-structures.h.

◆ STACK_TRACE

#define STACK_TRACE   0

Used to keep track of methods call.

Definition at line 43 of file sun-ipr-common-structures.h.

Typedef Documentation

◆ buffer_element

buffer_element describes an entry in the buffer used by SUN.

Variable Documentation

◆ MAX_HOP_NUMBER

const int MAX_HOP_NUMBER
static
Initial value:
=
5

Maximum number of hops contained in a SUN Path Establishment packet.

Definition at line 95 of file sun-ipr-common-structures.h.

◆ sunuid_

int sunuid_ = 0
static

Unique identifier for UWSUN packets.

Definition at line 98 of file sun-ipr-common-structures.h.