|
OpenSDN source code
|
#include "bvx_environment.h"

Go to the source code of this file.
Classes | |
| struct | gmpx_timer_ |
Macros | |
| #define | gmpx_patnode patnode |
| #define | gmpx_patroot patroot |
| #define | GMPX_PATNODE_TO_STRUCT PATNODE_TO_STRUCT |
| #define | gmpx_patricia_lookup_least patricia_lookup_least |
| #define | gmpx_patricia_lookup_geq patricia_lookup_geq |
| #define | gmpx_patroot_init(keylen, offset) patricia_root_init(NULL, FALSE, (keylen), (offset)) |
| #define | GMPX_PATRICIA_OFFSET STRUCT_OFFSET |
| #define | gmpx_patricia_add patricia_add |
| #define | gmpx_patroot_destroy patricia_root_delete |
| #define | gmpx_patricia_get_next patricia_get_next |
| #define | gmpx_patricia_lookup patricia_lookup |
| #define | gmpx_patricia_delete patricia_delete |
| #define | GMPX_MANY_INTFS |
| #define | gmpx_block_tag block_t |
| #define | gmpx_malloc_block task_block_alloc |
| #define | gmpx_free_block task_block_free |
| #define | gmpx_malloc_block_create task_block_init |
| #define | gmpx_calculate_cksum inet_cksum |
| #define | gmpx_assert assert |
| #define | GMPX_UNUSED UNUSED |
| #define | GMPX_MAX_RTR_CLIENTS 2 /* Should be enough */ |
Typedefs | |
| typedef struct gmp_intf_handle_ * | gmpx_intf_id |
| typedef boolean | gmpx_packet_attr |
| typedef struct gmpx_timer_ | gmpx_timer |
| typedef void(* | gmpx_timer_callback) (gmpx_timer *timer, void *context) |
Enumerations | |
| enum | gmpx_event_type { GMP_VERSION_MISMATCH = 0 , GMP_GROUP_LIMIT_EXCEED , GMP_GROUP_THRESHOLD_EXCEED , GMP_GROUP_LIMIT_BELOW } |
Functions | |
| void | gmpx_trace (void *context, const char *parms,...) |
| void | gmpx_post_event (void *context, gmpx_event_type ev, const void *parms,...) |
| void | gmpx_start_timer (gmpx_timer *timer, uint32_t ivl, uint32_t jitter_pct) |
| gmpx_timer * | gmpx_create_timer (void *inst_context, const char *name, gmpx_timer_callback callback, void *timer_context) |
| gmpx_timer * | gmpx_create_grouped_timer (gmp_timer_group group, void *inst_context, const char *name, gmpx_timer_callback callback, void *timer_context) |
| void | gmpx_destroy_timer (gmpx_timer *timer) |
| uint32_t | gmpx_timer_time_remaining (gmpx_timer *timer) |
| boolean | gmpx_timer_running (gmpx_timer *timer) |
| void | gmpx_stop_timer (gmpx_timer *timer) |
| void | gmpx_smear_timer_group (gmp_proto proto, gmp_timer_group group) |
| #define gmpx_assert assert |
Definition at line 44 of file gmpx_environment.h.
| #define gmpx_block_tag block_t |
Definition at line 33 of file gmpx_environment.h.
| #define gmpx_calculate_cksum inet_cksum |
Definition at line 40 of file gmpx_environment.h.
| #define gmpx_free_block task_block_free |
Definition at line 35 of file gmpx_environment.h.
| #define gmpx_malloc_block task_block_alloc |
Definition at line 34 of file gmpx_environment.h.
| #define gmpx_malloc_block_create task_block_init |
Definition at line 36 of file gmpx_environment.h.
| #define GMPX_MANY_INTFS |
Definition at line 29 of file gmpx_environment.h.
| #define GMPX_MAX_RTR_CLIENTS 2 /* Should be enough */ |
Definition at line 48 of file gmpx_environment.h.
| #define gmpx_patnode patnode |
Definition at line 12 of file gmpx_environment.h.
| #define GMPX_PATNODE_TO_STRUCT PATNODE_TO_STRUCT |
Definition at line 14 of file gmpx_environment.h.
| #define gmpx_patricia_add patricia_add |
Definition at line 20 of file gmpx_environment.h.
| #define gmpx_patricia_delete patricia_delete |
Definition at line 24 of file gmpx_environment.h.
| #define gmpx_patricia_get_next patricia_get_next |
Definition at line 22 of file gmpx_environment.h.
| #define gmpx_patricia_lookup patricia_lookup |
Definition at line 23 of file gmpx_environment.h.
| #define gmpx_patricia_lookup_geq patricia_lookup_geq |
Definition at line 16 of file gmpx_environment.h.
| #define gmpx_patricia_lookup_least patricia_lookup_least |
Definition at line 15 of file gmpx_environment.h.
| #define GMPX_PATRICIA_OFFSET STRUCT_OFFSET |
Definition at line 19 of file gmpx_environment.h.
| #define gmpx_patroot patroot |
Definition at line 13 of file gmpx_environment.h.
| #define gmpx_patroot_destroy patricia_root_delete |
Definition at line 21 of file gmpx_environment.h.
| #define gmpx_patroot_init | ( | keylen, | |
| offset | |||
| ) | patricia_root_init(NULL, FALSE, (keylen), (offset)) |
Definition at line 17 of file gmpx_environment.h.
| #define GMPX_UNUSED UNUSED |
Definition at line 46 of file gmpx_environment.h.
| typedef struct gmp_intf_handle_* gmpx_intf_id |
Definition at line 28 of file gmpx_environment.h.
| typedef boolean gmpx_packet_attr |
Definition at line 54 of file gmpx_environment.h.
| typedef struct gmpx_timer_ gmpx_timer |
Definition at line 68 of file gmpx_environment.h.
| typedef void(* gmpx_timer_callback) (gmpx_timer *timer, void *context) |
Definition at line 78 of file gmpx_environment.h.
| enum gmpx_event_type |
| Enumerator | |
|---|---|
| GMP_VERSION_MISMATCH | |
| GMP_GROUP_LIMIT_EXCEED | |
| GMP_GROUP_THRESHOLD_EXCEED | |
| GMP_GROUP_LIMIT_BELOW | |
Definition at line 60 of file gmpx_environment.h.
| gmpx_timer* gmpx_create_grouped_timer | ( | gmp_timer_group | group, |
| void * | inst_context, | ||
| const char * | name, | ||
| gmpx_timer_callback | callback, | ||
| void * | timer_context | ||
| ) |
| gmpx_timer* gmpx_create_timer | ( | void * | inst_context, |
| const char * | name, | ||
| gmpx_timer_callback | callback, | ||
| void * | timer_context | ||
| ) |
| void gmpx_destroy_timer | ( | gmpx_timer * | timer | ) |
| void gmpx_post_event | ( | void * | context, |
| gmpx_event_type | ev, | ||
| const void * | parms, | ||
| ... | |||
| ) |
Definition at line 564 of file gmp_map.cc.
| void gmpx_smear_timer_group | ( | gmp_proto | proto, |
| gmp_timer_group | group | ||
| ) |
| void gmpx_start_timer | ( | gmpx_timer * | timer, |
| uint32_t | ivl, | ||
| uint32_t | jitter_pct | ||
| ) |
| void gmpx_stop_timer | ( | gmpx_timer * | timer | ) |
| boolean gmpx_timer_running | ( | gmpx_timer * | timer | ) |
| uint32_t gmpx_timer_time_remaining | ( | gmpx_timer * | timer | ) |
| void gmpx_trace | ( | void * | context, |
| const char * | parms, | ||
| ... | |||
| ) |
Definition at line 548 of file gmp_map.cc.