#include <stdint.h>
#include <assert.h>
#include "task_block_api.h"
#include "task_thread_api.h"
#include "task_timer_api.h"
#include "patricia_api.h"
Go to the source code of this file.
|
static uint16_t | get_short (const void *ptr) |
|
static void * | put_short (void *ptr, uint16_t value) |
|
static uint16_t | inet_cksum (void *packet, size_t length) |
|
#define MEMBER_TO_STRUCT |
( |
|
function, |
|
|
|
structure, |
|
|
|
type, |
|
|
|
member |
|
) |
| |
Value:static inline structure *(
function)(
type *address) { \
if (address) { \
return (structure *)((char *)address - offsetof(structure, member)); \
} \
return NULL; \
}
Definition at line 19 of file gmpx_basic_types.h.
#define STRUCT_OFFSET |
( |
|
structure, |
|
|
|
pat_node, |
|
|
|
member |
|
) |
| (offsetof(structure, member) - offsetof(structure, pat_node)) |
static uint16_t get_short |
( |
const void * |
ptr | ) |
|
|
inlinestatic |
static uint16_t inet_cksum |
( |
void * |
packet, |
|
|
size_t |
length |
|
) |
| |
|
inlinestatic |
static void* put_short |
( |
void * |
ptr, |
|
|
uint16_t |
value |
|
) |
| |
|
inlinestatic |