mac-802_11.h File Reference

#include "address.h"
#include "ip.h"
#include "mac-timers.h"
#include "marshall.h"
#include <math.h>

Include dependency graph for mac-802_11.h:

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

Go to the source code of this file.

Data Structures

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


Define Documentation

#define DSSS_MaxPropagationDelay   0.000002
 

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

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

#define GET_ETHER_TYPE  )     GET2BYTE((x))
 

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

Referenced by CMUTrace::format_mac().

#define MAC_FragmentationThreshold   2346
 

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

#define MAC_MaxReceiveLifetime   512
 

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

#define MAC_MaxTransmitMSDULifetime   512
 

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

#define MAC_ProtocolVersion   0x00
 

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

Referenced by p802_15_4hdrACK(), p802_15_4hdrBeacon(), p802_15_4hdrCommand(), p802_15_4hdrDATA(), Mac802_11::sendACK(), Mac802_11::sendCTS(), Mac802_11::sendDATA(), MacTdma::sendDown(), and Mac802_11::sendRTS().

#define MAC_Subtype_ACK   0x0D
 

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

Referenced by Mac802_11::check_pktCTRL(), CMUTrace::nam_format(), p802_15_4hdrACK(), Mac802_11::sendACK(), and wpan_pName().

#define MAC_Subtype_CTS   0x0C
 

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

Referenced by Mac802_11::check_pktCTRL(), CMUTrace::nam_format(), and Mac802_11::sendCTS().

#define MAC_Subtype_Data   0x00
 

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

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

#define MAC_Subtype_RTS   0x0B
 

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

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

#define MAC_Type_Control   0x01
 

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

Referenced by p802_15_4hdrACK(), p802_15_4hdrBeacon(), p802_15_4hdrCommand(), Mac802_11::sendACK(), Mac802_11::sendCTS(), and Mac802_11::sendRTS().

#define MAC_Type_Data   0x02
 

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

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

#define MAC_Type_Management   0x00
 

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

#define MAC_Type_Reserved   0x03
 

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

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

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


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