#include <stdlib.h>#include "olsr_types.h"#include "olsr.h"#include "ipcalc.h"#include "olsr_ip_prefix_list.h"
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_entry * | ip_prefix_list_find (struct list_entity *ip_prefix_head, const union olsr_ip_addr *net, uint8_t prefix_len, int ip_version) |
| void ip_prefix_list_add | ( | struct list_entity * | ip_prefix_head, | |
| const union olsr_ip_addr * | net, | |||
| uint8_t | prefix_len | |||
| ) |
Definition at line 61 of file olsr_ip_prefix_list.c.
References list_add_before(), ip_prefix_entry::net, ip_prefix_entry::node, olsr_malloc(), olsr_ip_prefix::prefix, and olsr_ip_prefix::prefix_len.
Referenced by add_ipv6_addr(), arproaming_client_add(), check_ping_result(), CreateLocalEtherTunTap(), ip_acl_add(), olsr_event(), olsr_event_doing_hna(), parse_cfg_hna(), yyparse(), and zebra_parse().

| 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().

| 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().

| int ip_prefix_list_remove | ( | struct list_entity * | ip_prefix_head, | |
| const union olsr_ip_addr * | net, | |||
| uint8_t | prefix_len, | |||
| int | ip_version | |||
| ) |
Definition at line 73 of file olsr_ip_prefix_list.c.
References ipcmp(), list_remove(), ip_prefix_entry::net, ip_prefix_entry::node, OLSR_FOR_ALL_IPPREFIX_ENTRIES, olsr_ip_prefix::prefix, and olsr_ip_prefix::prefix_len.
Referenced by arproaming_client_update(), check_for_route(), ip_acl_remove(), olsr_event(), olsr_event_doing_hna(), olsr_parser(), olsrd_plugin_init(), and zebra_parse().

1.6.3