netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vector.h File Reference
#include <stdlib.h>
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:

Functions

struct vectorvector_create (size_t size)
 
void vector_destroy (struct vector *v)
 
int vector_add (struct vector *v, void *data)
 
int vector_iterate (struct vector *v, const void *data, int(*fcn)(const void *a, const void *b))
 

Function Documentation

int vector_add ( struct vector v,
void *  data 
)

References vector::cur_elems, vector::data, DEFAULT_VECTOR_GROWTH, vector::max_elems, NULL, and vector::size.

Referenced by ct_filter_add_netmask().

Here is the caller graph for this function:

struct vector* vector_create ( size_t  size)

References vector::cur_elems, vector::data, DEFAULT_VECTOR_MEMBERS, vector::max_elems, NULL, vector::size, and size.

Referenced by ct_filter_create().

Here is the caller graph for this function:

void vector_destroy ( struct vector v)

References vector::data.

Referenced by ct_filter_destroy().

Here is the caller graph for this function:

int vector_iterate ( struct vector v,
const void *  data,
int(*)(const void *a, const void *b)  fcn 
)

References vector::cur_elems, vector::data, and vector::size.

Referenced by ct_filter_add_netmask().

Here is the caller graph for this function: