24 #define BMAP_UPDATE MAP_UPDATE
52 #define MAP_BNODE_PACK_SZ MAP_NODE_PACK_SZ
53 #define MAXGROUPBNODE MAXGROUPNODE
56 #define MAXBNODE_LINKS (MAXGROUPNODE*2)
58 #define MAXBNODE_RNODEBLOCK (MAXBNODE_LINKS*MAXGROUPBNODE*MAP_RNODE_PACK_SZ)
64 #define bnode_ptr brdcast
65 #define bnode_map_hdr int_map_hdr
66 #define bnode_map_sz int_map_sz
72 #define BMAP_LEVELS(levels) (levels-1)
73 #define BMAP_MAX_LEVELS (BMAP_LEVELS(MAX_LEVELS))
74 #define GET_BMAP_LEVELS(family) (BMAP_LEVELS(GET_LEVELS((family))))
101 #define BNODE_HDR_SZ(levels) (sizeof(bnode_hdr)+sizeof(u_char)*(levels))
113 #define BNODEBLOCK_SZ(levels, links) (BNODE_HDR_SZ((levels)) + \
114 (sizeof(bnode_chunk)*(links)))
144 void bmap_counter_init(u_char levels, u_int **bnodes_closed, u_int **bnodes_opened);
void map_set_bnode_flag(map_bnode *bmap, int bmap_nodes, int flags)
Definition: bmap.c:248
int bmaps_count_bnode_rnode(map_bnode **bmap, int *bmap_nodes, int levels, void *n)
Definition: bmap.c:191
void bmap_counter_reset(u_char levels, u_int *counter)
Definition: bmap.c:62
static const int_info bnode_hdr_iinfo
Definition: bmap.h:94
u_int rtt
Definition: bmap.h:111
map_bnode * map_bnode_del(map_bnode *bmap, u_int *bmap_nodes, map_bnode *bnode)
Definition: bmap.c:96
u_short links
Definition: bmap.h:92
int map_find_bnode(map_bnode *bmap, int bmap_nodes, int node)
Definition: bmap.c:144
void bmap_counter_free(u_int *bnodes_closed, u_int *bnodes_opened)
Definition: bmap.c:56
#define INT_TYPE_16BIT
Definition: endianness.h:36
int map_find_bnode_rnode(map_bnode *bmap, int bmap_nodes, void *n)
Definition: bmap.c:160
u_char gnode
Definition: bmap.h:109
int map_del_bnode_rnode(map_bnode **bmap, int *bmap_nodes, void *n)
Definition: bmap.c:207
map_bnode ** unpack_all_bmaps(char *, u_char, map_gnode **, u_int **, int, int)
Definition: bmap.c:324
struct bnode_maps_hdr _PACKED_
void bmap_counter_init(u_char levels, u_int **bnodes_closed, u_int **bnodes_opened)
Definition: bmap.c:47
static const int_info bnode_chunk_iinfo
Definition: bmap.h:115
static const int_info bnode_maps_hdr_iinfo
Definition: bmap.h:139
u_char bnode_levels
Definition: bmap.h:91
int map_add_bnode(map_bnode **bmap, u_int *bmap_nodes, u_int bnode, u_int links)
Definition: bmap.c:73
int bmaps_del_bnode_rnode(map_bnode **bmap, int *bmap_nodes, int levels, void *n)
Definition: bmap.c:234
size_t bmaps_block_sz
Definition: bmap.h:137
void bmap_levels_free(map_bnode **bmap, u_int *bmap_nodes)
Definition: bmap.c:41
int bmap_del_rnode_by_level(map_bnode *, int, map_gnode **, int)
Definition: bmap.c:120
int map_count_bnode_rnode(map_bnode *bmap, int bmap_nodes, void *n)
Definition: bmap.c:175
#define INT_INFO
Definition: endianness.h:90
map_bnode ** load_bmap(char *, map_gnode **, u_char, u_int **)
Definition: bmap.c:415
u_char levels
Definition: bmap.h:136
void bmap_levels_init(u_char levels, map_bnode ***bmap, u_int **bmap_nodes)
Definition: bmap.c:32
map_node map_bnode
Definition: bmap.h:51
int flags
Definition: if.c:39
#define INT_TYPE_32BIT
Definition: endianness.h:35
void bmaps_set_bnode_flag(map_bnode **bmap, int *bmap_nodes, int levels, int flags)
Definition: bmap.c:259
u_char level
Definition: bmap.h:110
char * pack_all_bmaps(map_bnode **, u_int *, map_gnode **, quadro_group, size_t *)
Definition: bmap.c:275
int save_bmap(map_bnode **, u_int *, map_gnode **, quadro_group, char *)
Definition: bmap.c:386