16 #ifndef __adj_alloc_h__ 17 #define __adj_alloc_h__ 37 #define aa_aligned_header_bytes \ 38 vec_aligned_header_bytes (sizeof (aa_header_t), sizeof (void *))
format_function_t format_adj_allocation
always_inline void * vec_aligned_header(void *v, uword header_bytes, uword align)
ip_adjacency_t * aa_bootstrap(ip_adjacency_t *adjs, u32 n)
void aa_free(ip_adjacency_t *adjs, ip_adjacency_t *adj)
ip_adjacency_t * aa_alloc(ip_adjacency_t *adjs, ip_adjacency_t **blockp, u32 n)
static aa_header_t * aa_header(void *v)
CLIB vectors are ubiquitous dynamically resized arrays with by user defined "headers".