extract.h File Reference

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

Go to the source code of this file.

Defines

#define EXTRACT_16BITS(p)   ((u_int16_t)ntohs(*(const u_int16_t *)(p)))
#define EXTRACT_32BITS(p)   ((u_int32_t)ntohl(*(const u_int32_t *)(p)))
#define EXTRACT_64BITS(p)
#define EXTRACT_24BITS(p)
#define EXTRACT_LE_8BITS(p)   (*(p))
#define EXTRACT_LE_16BITS(p)
#define EXTRACT_LE_32BITS(p)
#define EXTRACT_LE_64BITS(p)


Define Documentation

#define EXTRACT_16BITS (  )     ((u_int16_t)ntohs(*(const u_int16_t *)(p)))

Definition at line 91 of file extract.h.

#define EXTRACT_32BITS (  )     ((u_int32_t)ntohl(*(const u_int32_t *)(p)))

Definition at line 93 of file extract.h.

#define EXTRACT_64BITS (  ) 

Value:

((u_int64_t)(((u_int64_t)ntohl(*((const u_int32_t *)(p) + 0))) << 32 | \
         ((u_int64_t)ntohl(*((const u_int32_t *)(p) + 1))) << 0))

Definition at line 95 of file extract.h.

#define EXTRACT_24BITS (  ) 

Value:

((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 0) << 16 | \
         (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
         (u_int32_t)*((const u_int8_t *)(p) + 2)))

Definition at line 100 of file extract.h.

#define EXTRACT_LE_8BITS (  )     (*(p))

Definition at line 109 of file extract.h.

#define EXTRACT_LE_16BITS (  ) 

Value:

((u_int16_t)((u_int16_t)*((const u_int8_t *)(p) + 1) << 8 | \
         (u_int16_t)*((const u_int8_t *)(p) + 0)))

Definition at line 110 of file extract.h.

Referenced by cpack_uint16().

#define EXTRACT_LE_32BITS (  ) 

Value:

((u_int32_t)((u_int32_t)*((const u_int8_t *)(p) + 3) << 24 | \
         (u_int32_t)*((const u_int8_t *)(p) + 2) << 16 | \
         (u_int32_t)*((const u_int8_t *)(p) + 1) << 8 | \
         (u_int32_t)*((const u_int8_t *)(p) + 0)))

Definition at line 113 of file extract.h.

Referenced by cpack_uint32(), and FillRadioData().

#define EXTRACT_LE_64BITS (  ) 

Value:

((u_int64_t)((u_int64_t)*((const u_int8_t *)(p) + 7) << 56 | \
         (u_int64_t)*((const u_int8_t *)(p) + 6) << 48 | \
         (u_int64_t)*((const u_int8_t *)(p) + 5) << 40 | \
         (u_int64_t)*((const u_int8_t *)(p) + 4) << 32 | \
               (u_int64_t)*((const u_int8_t *)(p) + 3) << 24 | \
         (u_int64_t)*((const u_int8_t *)(p) + 2) << 16 | \
         (u_int64_t)*((const u_int8_t *)(p) + 1) << 8 | \
         (u_int64_t)*((const u_int8_t *)(p) + 0)))

Definition at line 118 of file extract.h.

Referenced by cpack_uint64().


Generated on Fri Jul 25 17:10:55 2008 for WifiScanner by  doxygen 1.5.5