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

marshall.h File Reference

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

Included by dependency graph

Go to the source code of this file.

Defines

#define STORE4BYTE(x, y)
#define STORE2BYTE(x, y)
#define GET2BYTE(x)
#define GET4BYTE(x)


Define Documentation

#define GET2BYTE  ) 
 

Value:

(((*(unsigned char *)(x)) << 8) |\
                          (*(((unsigned char *)(x))+1)))

Definition at line 73 of file marshall.h.

Referenced by MacTdma::hdr_type(), and Mac802_11::hdr_type().

#define GET4BYTE  ) 
 

Value:

(((*(unsigned char *)(x)) << 24) |\
                          (*(((unsigned char *)(x))+1) << 16) |\
                          (*(((unsigned char *)(x))+2) << 8) |\
                          (*(((unsigned char *)(x))+3)))

Definition at line 76 of file marshall.h.

#define STORE2BYTE x,
 ) 
 

Value:

((*((unsigned char *)y)) = ((*x) >> 8) & 255 ,\
                          (*((unsigned char *)y+1)) = (*x) & 255 )

Definition at line 70 of file marshall.h.

Referenced by MacTdma::hdr_type(), and Mac802_11::hdr_type().

#define STORE4BYTE x,
 ) 
 

Value:

((*((unsigned char *)y)) = ((*x) >> 24) & 255 ,\
                          (*((unsigned char *)y+1)) = ((*x) >> 16) & 255 ,\
                          (*((unsigned char *)y+2)) = ((*x) >> 8) & 255 ,\
                          (*((unsigned char *)y+3)) = (*x) & 255 )

Definition at line 65 of file marshall.h.

Referenced by MacTdma::hdr_dst(), Mac802_11::hdr_dst(), MacTdma::hdr_src(), Mac802_11::hdr_src(), Mac802_11::sendACK(), Mac802_11::sendCTS(), and Mac802_11::sendRTS().


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