marshall.h File Reference

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

Go to the source code of this file.

Defines

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


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(), Mac802_11::hdr_type(), and p802_15_4hdr_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(), Mac802_11::hdr_type(), and p802_15_4hdr_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(), p802_15_4hdr_dst(), p802_15_4hdr_src(), Mac802_11::sendACK(), Mac802_11::sendCTS(), and Mac802_11::sendRTS().


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