ns2 Network Simulator C++ Class Hierarchy of version ns-snapshot-20040722 | |
| Home | Source Code | Manual | FAQ | Mailing List Archive | Search | | | Download | |
#include "marshall.h"
#include <delay.h>
#include <connector.h>
#include <packet.h>
#include <random.h>
#include <arp.h>
#include <ll.h>
#include <mac.h>
Compounds | |
struct | frame_control |
struct | hdr_mac_tdma |
class | Host |
class | MacTdma |
class | MacTdmaTimer |
class | PHY_MIB |
class | RxPktTdmaTimer |
class | SlotTdmaTimer |
class | TxPktTdmaTimer |
Defines | |
#define | GET_ETHER_TYPE(x) GET2BYTE((x)) |
#define | SET_ETHER_TYPE(x, y) {u_int16_t t = (y); STORE2BYTE(x,&t);} |
#define | DSSS_CWMin 31 |
#define | DSSS_CWMax 1023 |
#define | DSSS_SlotTime 0.000020 |
#define | DSSS_CCATime 0.000015 |
#define | DSSS_RxTxTurnaroundTime 0.000005 |
#define | DSSS_SIFSTime 0.000010 |
#define | DSSS_PreambleLength 144 |
#define | DSSS_PLCPHeaderLength 48 |
#define | MAC_ProtocolVersion 0x00 |
#define | MAC_Type_Data 0x02 |
#define | MAC_Subtype_Data 0x00 |
#define | MAC_TDMA_MAX_DATA_LEN 1500 |
#define | MAC_TDMA_SLOT_NUM 32 |
#define | SLOT_SCHE 0 |
#define | SLOT_SEND 1 |
#define | SLOT_RECV 2 |
#define | SLOT_BCAST 3 |
#define | NOTHING_TO_SEND -2 |
#define | FIRST_ROUND -1 |
#define | ON 1 |
#define | OFF 0 |
#define | DATA_DURATION 5 |
#define | ETHER_HDR_LEN |
#define | DATA_Time(len) (8 * (len) / bandwidth_) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: ((phymib_->PreambleLength >> 3) + \ (phymib_->PLCPHeaderLength >> 3) + \ sizeof(struct hdr_mac_tdma) + \ ETHER_FCS_LEN) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|