Fixed bug in get header flags: changed % to &.
FossilOrigin-Name: d8f1de257f6956e036d989a71af972376729906a16c0671ed0eb87c09ee41eb8
This commit is contained in:
parent
d56caa1d85
commit
2e88be5bec
@ -48,16 +48,16 @@
|
||||
#define CWTH_FLAGS_T 0x100 /* bit 8 type of payload frame */
|
||||
|
||||
|
||||
#define CWTH_GET_FLAG_R1(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_R1 ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_R2(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_R2 ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_R3(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_R3 ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_R1(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_R1 ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_R2(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_R2 ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_R3(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_R3 ) ? 1:0)
|
||||
|
||||
#define CWTH_GET_FLAG_K(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_K ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_M(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_M ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_W(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_W ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_L(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_L ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_F(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_F ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_T(th) ((ntohl( *((uint32_t*)th)) % CWTH_FLAGS_T ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_K(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_K ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_M(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_M ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_W(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_W ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_L(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_L ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_F(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_F ) ? 1:0)
|
||||
#define CWTH_GET_FLAG_T(th) ((ntohl( *((uint32_t*)th)) & CWTH_FLAGS_T ) ? 1:0)
|
||||
|
||||
/* wireless binding ids */
|
||||
#define CWTH_WBID_RESERVED1 0
|
||||
|
Loading…
Reference in New Issue
Block a user