The Netsukuku Project
0.0.9
An Alternative routing method
|
Go to the source code of this file.
Data Structures | |
struct | _PACKED_ |
struct | _PACKED_ |
Macros | |
#define | TRACER_RQ_TIMEOUT 16 /* seconds */ |
#define | TRCR_BBLOCK |
#define | TRCR_IGW |
#define | TRACERPKT_SZ(hops) (sizeof(tracer_hdr)+(sizeof(tracer_chunk)*(hops))) |
#define | TRACER_HDR_PTR(msg) ((tracer_hdr *)(((char *)BRDCAST_HDR_PTR((msg)))+sizeof(brdcast_hdr))) |
#define | TRACER_CHUNK_PTR(msg) ((tracer_chunk *)(((char *)TRACER_HDR_PTR(msg))+sizeof(tracer_hdr))) |
#define | TRACER_PKT_EXCLUDE_VARS |
#define | TRACER_PKT_EXCLUDE_VARS_NAME |
Functions | |
int | ip_to_rfrom (inet_prefix rip, quadro_group *rip_quadg, quadro_group *new_quadg, char quadg_flags) |
tracer_chunk * | tracer_add_entry (void *void_map, void *void_node, tracer_chunk *tracer, u_int *hops, u_char level) |
int | tracer_add_rtt (int rpos, tracer_chunk *tracer, u_short hop) |
u_short | tracer_split_bblock (void *, size_t, bnode_hdr ***, bnode_chunk ****, size_t *) |
int | tracer_get_trtt (int from_rnode_pos, tracer_hdr *trcr_hdr, tracer_chunk *tracer, u_int *trtt) |
int | tracer_store_pkt (inet_prefix, quadro_group *, u_char, tracer_hdr *, tracer_chunk *, void *, size_t, u_short *, char **, size_t *) |
int | tracer_unpack_pkt (PACKET, brdcast_hdr **, tracer_hdr **, tracer_chunk **, bnode_hdr **, size_t *, quadro_group *, int *) |
int | tracer_pkt_build (u_char, int, int, int, u_char, brdcast_hdr *, tracer_hdr *, tracer_chunk *, u_short, char *, size_t, PACKET *) |
int | flood_pkt_send (int(*is_node_excluded)(ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id), u_char level, int sub_id, int from_rpos, PACKET pkt) |
int | exclude_from (ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id) |
int | exclude_glevel (ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id) |
int | exclude_all_but_notfrom (ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id) |
int | exclude_from_and_glevel (ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id) |
int | tracer_pkt_recv (PACKET rpkt) |
int | tracer_pkt_start (u_char level) |
Variables | |
static const int_info | tracer_hdr_iinfo |
static const int_info | tracer_chunk_iinfo |
int | tracer_pkt_start_mutex |
#define TRACER_CHUNK_PTR | ( | msg | ) | ((tracer_chunk *)(((char *)TRACER_HDR_PTR(msg))+sizeof(tracer_hdr))) |
#define TRACER_HDR_PTR | ( | msg | ) | ((tracer_hdr *)(((char *)BRDCAST_HDR_PTR((msg)))+sizeof(brdcast_hdr))) |
#define TRACER_PKT_EXCLUDE_VARS |
#define TRACER_PKT_EXCLUDE_VARS_NAME |
#define TRACER_RQ_TIMEOUT 16 /* seconds */ |
#define TRACERPKT_SZ | ( | hops | ) | (sizeof(tracer_hdr)+(sizeof(tracer_chunk)*(hops))) |
#define TRCR_BBLOCK |
#define TRCR_IGW |
int exclude_all_but_notfrom | ( | ext_rnode * | e_rnode, |
map_node * | node, | ||
int | from_rpos, | ||
int | pos, | ||
u_char | excl_level, | ||
int | sub_id | ||
) |
int exclude_from | ( | ext_rnode * | e_rnode, |
map_node * | node, | ||
int | from_rpos, | ||
int | pos, | ||
u_char | excl_level, | ||
int | sub_id | ||
) |
int exclude_from_and_glevel | ( | ext_rnode * | e_rnode, |
map_node * | node, | ||
int | from_rpos, | ||
int | pos, | ||
u_char | excl_level, | ||
int | sub_id | ||
) |
int exclude_glevel | ( | ext_rnode * | e_rnode, |
map_node * | node, | ||
int | from_rpos, | ||
int | pos, | ||
u_char | excl_level, | ||
int | sub_id | ||
) |
int flood_pkt_send | ( | int(*)(ext_rnode *e_rnode, map_node *node, int from_rpos, int pos, u_char excl_level, int sub_id) | is_node_excluded, |
u_char | level, | ||
int | sub_id, | ||
int | from_rpos, | ||
PACKET | pkt | ||
) |
int ip_to_rfrom | ( | inet_prefix | rip, |
quadro_group * | rip_quadg, | ||
quadro_group * | new_quadg, | ||
char | quadg_flags | ||
) |
tracer_chunk* tracer_add_entry | ( | void * | void_map, |
void * | void_node, | ||
tracer_chunk * | tracer, | ||
u_int * | hops, | ||
u_char | level | ||
) |
int tracer_add_rtt | ( | int | rpos, |
tracer_chunk * | tracer, | ||
u_short | hop | ||
) |
int tracer_get_trtt | ( | int | from_rnode_pos, |
tracer_hdr * | trcr_hdr, | ||
tracer_chunk * | tracer, | ||
u_int * | trtt | ||
) |
int tracer_pkt_build | ( | u_char | , |
int | , | ||
int | , | ||
int | , | ||
u_char | , | ||
brdcast_hdr * | , | ||
tracer_hdr * | , | ||
tracer_chunk * | , | ||
u_short | , | ||
char * | , | ||
size_t | , | ||
PACKET * | |||
) |
int tracer_pkt_recv | ( | PACKET | rpkt | ) |
int tracer_pkt_start | ( | u_char | level | ) |
u_short tracer_split_bblock | ( | void * | , |
size_t | , | ||
bnode_hdr *** | , | ||
bnode_chunk **** | , | ||
size_t * | |||
) |
int tracer_store_pkt | ( | inet_prefix | , |
quadro_group * | , | ||
u_char | , | ||
tracer_hdr * | , | ||
tracer_chunk * | , | ||
void * | , | ||
size_t | , | ||
u_short * | , | ||
char ** | , | ||
size_t * | |||
) |
int tracer_unpack_pkt | ( | PACKET | , |
brdcast_hdr ** | , | ||
tracer_hdr ** | , | ||
tracer_chunk ** | , | ||
bnode_hdr ** | , | ||
size_t * | , | ||
quadro_group * | , | ||
int * | |||
) |
|
static |
|
static |
int tracer_pkt_start_mutex |