/home/aaron/olsrd-current/olsrd/src/core/olsr_ip_prefix_list.c File Reference

#include <stdlib.h>
#include "olsr_types.h"
#include "olsr.h"
#include "ipcalc.h"
#include "olsr_ip_prefix_list.h"
Include dependency graph for olsr_ip_prefix_list.c:

Go to the source code of this file.

Functions

void ip_prefix_list_flush (struct list_entity *ip_prefix_head)
void ip_prefix_list_add (struct list_entity *ip_prefix_head, const union olsr_ip_addr *net, uint8_t prefix_len)
int ip_prefix_list_remove (struct list_entity *ip_prefix_head, const union olsr_ip_addr *net, uint8_t prefix_len, int ip_version)
struct ip_prefix_entryip_prefix_list_find (struct list_entity *ip_prefix_head, const union olsr_ip_addr *net, uint8_t prefix_len, int ip_version)

Function Documentation

void ip_prefix_list_add ( struct list_entity ip_prefix_head,
const union olsr_ip_addr net,
uint8_t  prefix_len 
)
struct ip_prefix_entry* ip_prefix_list_find ( struct list_entity ip_prefix_head,
const union olsr_ip_addr net,
uint8_t  prefix_len,
int  ip_version 
) [read]

Definition at line 88 of file olsr_ip_prefix_list.c.

References ipcmp(), ip_prefix_entry::net, OLSR_FOR_ALL_IPPREFIX_ENTRIES, olsr_ip_prefix::prefix, and olsr_ip_prefix::prefix_len.

Referenced by arproaming_client_add(), and olsr_input_hna().

Here is the call graph for this function:

void ip_prefix_list_flush ( struct list_entity ip_prefix_head  ) 

Definition at line 50 of file olsr_ip_prefix_list.c.

References list_remove(), ip_prefix_entry::node, and OLSR_FOR_ALL_IPPREFIX_ENTRIES.

Referenced by ip_acl_flush(), and olsr_free_cfg().

Here is the call graph for this function:

int ip_prefix_list_remove ( struct list_entity ip_prefix_head,
const union olsr_ip_addr net,
uint8_t  prefix_len,
int  ip_version 
)
Generated on Wed Jun 19 06:00:05 2013 for olsrd by  doxygen 1.6.3