version 1.1.2.3, 2013/06/28 15:30:46
|
version 1.1.2.4, 2013/06/30 21:46:58
|
Line 18 typedef struct tagRawPacket {
|
Line 18 typedef struct tagRawPacket {
|
#define RPACK_LEN(x) (assert((x)), (x)->r_len) |
#define RPACK_LEN(x) (assert((x)), (x)->r_len) |
#define RPACK_REWIND(x) (assert((x)), (x)->r_next = (x)->r_buf) |
#define RPACK_REWIND(x) (assert((x)), (x)->r_next = (x)->r_buf) |
|
|
|
#define RPACK_SET_16(x, n) do { assert((x)); \ |
|
*((uint8_t *) (x) + 1) = *((const uint8_t *) (n) + 1); \ |
|
*((uint8_t *) (x) + 0) = *((const uint8_t *) (n) + 0); \ |
|
} while (0) |
|
|
#define EXTRACT_LE_8(x) (assert((x)), *(x)) |
#define EXTRACT_LE_8(x) (assert((x)), *(x)) |
#define EXTRACT_LE_16(x) (assert((x)), (u_int16_t) ( \ |
#define EXTRACT_LE_16(x) (assert((x)), (u_int16_t) ( \ |
(uint16_t) *((const uint8_t *) (x) + 1) << 8 | \ |
(uint16_t) *((const uint8_t *) (x) + 1) << 8 | \ |