Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

mac-802_11.h File Reference

#include "mac-timers.h"
#include "marshall.h"

Include dependency graph for mac-802_11.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

struct  ack_frame
struct  cts_frame
struct  frame_control
struct  hdr_mac802_11
class  Host
class  Mac802_11
class  MAC_MIB
class  PHY_MIB
struct  rts_frame

Defines

#define GET_ETHER_TYPE(x)   GET2BYTE((x))
#define SET_ETHER_TYPE(x, y)   {u_int16_t t = (y); STORE2BYTE(x,&t);}
#define MAC_ProtocolVersion   0x00
#define MAC_Type_Management   0x00
#define MAC_Type_Control   0x01
#define MAC_Type_Data   0x02
#define MAC_Type_Reserved   0x03
#define MAC_Subtype_RTS   0x0B
#define MAC_Subtype_CTS   0x0C
#define MAC_Subtype_ACK   0x0D
#define MAC_Subtype_Data   0x00
#define PLCP_HDR_LEN
#define ETHER_HDR_LEN11
#define ETHER_RTS_LEN
#define ETHER_CTS_LEN
#define ETHER_ACK_LEN
#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 DSSS_PLCPDataRate   1.0e6
#define DSSS_MaxPropagationDelay   0.000002
#define MAC_RTSThreshold   0
#define MAC_ShortRetryLimit   7
#define MAC_LongRetryLimit   4
#define MAC_FragmentationThreshold   2346
#define MAC_MaxTransmitMSDULifetime   512
#define MAC_MaxReceiveLifetime   512


Define Documentation

#define DSSS_CCATime   0.000015
 

Definition at line 147 of file mac-802_11.h.

#define DSSS_CWMax   1023
 

Definition at line 145 of file mac-802_11.h.

#define DSSS_CWMin   31
 

Definition at line 144 of file mac-802_11.h.

#define DSSS_MaxPropagationDelay   0.000002
 

Definition at line 158 of file mac-802_11.h.

Referenced by Mac802_11::check_pktCTRL(), Mac802_11::check_pktRTS(), and Mac802_11::check_pktTx().

#define DSSS_PLCPDataRate   1.0e6
 

Definition at line 152 of file mac-802_11.h.

#define DSSS_PLCPHeaderLength   48
 

Definition at line 151 of file mac-802_11.h.

#define DSSS_PreambleLength   144
 

Definition at line 150 of file mac-802_11.h.

#define DSSS_RxTxTurnaroundTime   0.000005
 

Definition at line 148 of file mac-802_11.h.

#define DSSS_SIFSTime   0.000010
 

Definition at line 149 of file mac-802_11.h.

#define DSSS_SlotTime   0.000020
 

Definition at line 146 of file mac-802_11.h.

#define ETHER_ACK_LEN
 

Value:

(PLCP_HDR_LEN +                 \
         sizeof(struct ack_frame))

Definition at line 136 of file mac-802_11.h.

Referenced by Mac802_11::check_pktCTRL(), Mac802_11::check_pktTx(), Mac802_11::Mac802_11(), Mac802_11::sendACK(), Mac802_11::sendDATA(), and Mac802_11::sendRTS().

#define ETHER_CTS_LEN
 

Value:

(PLCP_HDR_LEN +                 \
         sizeof(struct cts_frame))

Definition at line 132 of file mac-802_11.h.

Referenced by Mac802_11::check_pktCTRL(), Mac802_11::check_pktRTS(), Mac802_11::sendCTS(), and Mac802_11::sendRTS().

#define ETHER_HDR_LEN11
 

Value:

(PLCP_HDR_LEN +                         \
         sizeof(struct hdr_mac802_11) +         \
         ETHER_FCS_LEN)

Definition at line 123 of file mac-802_11.h.

Referenced by Mac802_11::recvDATA(), Mac802_11::RetransmitDATA(), Mac802_11::RetransmitRTS(), and Mac802_11::sendDATA().

#define ETHER_RTS_LEN
 

Value:

(PLCP_HDR_LEN +                         \
         sizeof(struct rts_frame))

Definition at line 128 of file mac-802_11.h.

Referenced by Mac802_11::check_pktRTS(), and Mac802_11::sendRTS().

#define GET_ETHER_TYPE  )     GET2BYTE((x))
 

Definition at line 46 of file mac-802_11.h.

Referenced by CMUTrace::format_mac().

#define MAC_FragmentationThreshold   2346
 

Definition at line 182 of file mac-802_11.h.

#define MAC_LongRetryLimit   4
 

Definition at line 181 of file mac-802_11.h.

#define MAC_MaxReceiveLifetime   512
 

Definition at line 184 of file mac-802_11.h.

#define MAC_MaxTransmitMSDULifetime   512
 

Definition at line 183 of file mac-802_11.h.

#define MAC_ProtocolVersion   0x00
 

Definition at line 53 of file mac-802_11.h.

Referenced by Mac802_11::sendACK(), Mac802_11::sendCTS(), Mac802_11::sendDATA(), MacTdma::sendDown(), and Mac802_11::sendRTS().

#define MAC_RTSThreshold   0
 

Definition at line 179 of file mac-802_11.h.

#define MAC_ShortRetryLimit   7
 

Definition at line 180 of file mac-802_11.h.

#define MAC_Subtype_ACK   0x0D
 

Definition at line 62 of file mac-802_11.h.

Referenced by Mac802_11::check_pktCTRL(), Mac802_11::discard(), CMUTrace::format_mac(), Mac802_11::recv_timer(), and Mac802_11::sendACK().

#define MAC_Subtype_CTS   0x0C
 

Definition at line 61 of file mac-802_11.h.

Referenced by Mac802_11::check_pktCTRL(), Mac802_11::discard(), CMUTrace::format_mac(), Mac802_11::recv_timer(), and Mac802_11::sendCTS().

#define MAC_Subtype_Data   0x00
 

Definition at line 63 of file mac-802_11.h.

Referenced by Mac802_11::check_pktTx(), Mac802_11::discard(), Mac802_11::recv_timer(), Mac802_11::sendDATA(), and MacTdma::sendDown().

#define MAC_Subtype_RTS   0x0B
 

Definition at line 60 of file mac-802_11.h.

Referenced by Mac802_11::check_pktRTS(), Mac802_11::discard(), CMUTrace::format_mac(), Mac802_11::recv_timer(), and Mac802_11::sendRTS().

#define MAC_Type_Control   0x01
 

Definition at line 56 of file mac-802_11.h.

Referenced by Mac802_11::discard(), Mac802_11::recv_timer(), Mac802_11::sendACK(), Mac802_11::sendCTS(), and Mac802_11::sendRTS().

#define MAC_Type_Data   0x02
 

Definition at line 57 of file mac-802_11.h.

Referenced by Mac802_11::discard(), Mac802_11::recv_timer(), Mac802_11::sendDATA(), and MacTdma::sendDown().

#define MAC_Type_Management   0x00
 

Definition at line 55 of file mac-802_11.h.

Referenced by Mac802_11::discard(), and Mac802_11::recv_timer().

#define MAC_Type_Reserved   0x03
 

Definition at line 58 of file mac-802_11.h.

#define PLCP_HDR_LEN
 

Value:

((phymib_->PreambleLength >> 3) +        \
         (phymib_->PLCPHeaderLength >> 3))

Definition at line 119 of file mac-802_11.h.

Referenced by Mac802_11::txtime().

#define SET_ETHER_TYPE x,
 )     {u_int16_t t = (y); STORE2BYTE(x,&t);}
 

Definition at line 47 of file mac-802_11.h.


Generated on Tue Apr 20 12:22:26 2004 for NS2.26SourcesOriginal by doxygen 1.3.3