45 #ifndef IPPS_INTERNAL_H 46 #define IPPS_INTERNAL_H 52 typedef struct ipps_interval_node {
54 struct ipps_interval_node *
next;
83 int cmp_net_v4(
const void *v1,
const void *v2);
92 int cmp_net_v6(
const void *v1,
const void *v2);
104 uint32_t **net_mask_array);
168 uint32_t *context_counter, uint32_t **net_mask_array);
int destroy_list(ipps_interval_node_t *interval_list)
void ip_inc(const ip_addr_t *ip, ip_addr_t *ip_inc)
struct ipps_interval_node * next
Next node in list, NULL if last node in list.
ipps_interval_t * init_context(ipps_network_t **networks, uint32_t network_count, uint32_t *context_counter, uint32_t **net_mask_array)
int copy_all_data(ipps_interval_t *dest, ipps_interval_t *src)
int free_data(ipps_interval_t *interval, void ***data_collector, uint32_t *data_coll_cnt)
void destroy_ip_v6_net_mask_array(uint32_t **net_mask_array)
void mask_ipv6(ip_addr_t *ip, uint32_t mask, ip_addr_t *masked_ipv6, uint32_t **net_mask_array)
uint32_t ** create_ip_v6_net_mask_array(void)
int add_data(ipps_interval_t *interval, void *data, size_t data_len)
int cmp_net_v6(const void *v1, const void *v2)
ipps_interval_t * interval
Pointer to interval structure.
ipps_interval_node_t * insert_new_interval(ipps_interval_node_t *position, const ip_addr_t *low_ip, const ip_addr_t *high_ip)
int cmp_net_v4(const void *v1, const void *v2)
void ip_dec(const ip_addr_t *ip, ip_addr_t *ip_dec)
void fill_interval_by_network(const ipps_network_t *net, ipps_interval_t *inter, uint32_t **net_mask_array)
ipps_interval_node_t * new_interval(const ip_addr_t *low_ip, const ip_addr_t *high_ip)
ipps_context_t * new_context(void)