#include "ipcalc.h"#include "olsr_ip_prefix_list.h"#include "olsr_ip_acl.h"
Go to the source code of this file.
Functions | |
| void | ip_acl_init (struct ip_acl *acl) |
| void | ip_acl_flush (struct ip_acl *acl) |
| void | ip_acl_add (struct ip_acl *acl, const union olsr_ip_addr *net, uint8_t prefix_len, bool reject) |
| void | ip_acl_remove (struct ip_acl *acl, const union olsr_ip_addr *net, uint8_t prefix_len, bool reject, int ip_version) |
| bool | ip_acl_acceptable (struct ip_acl *acl, const union olsr_ip_addr *ip, int ip_version) |
| bool ip_acl_acceptable | ( | struct ip_acl * | acl, | |
| const union olsr_ip_addr * | ip, | |||
| int | ip_version | |||
| ) |
Definition at line 75 of file olsr_ip_acl.c.
References ip_acl::accept, ip_acl::default_accept, ip_acl::first_accept, ip_in_net(), ip_prefix_entry::net, OLSR_FOR_ALL_IPPREFIX_ENTRIES, and ip_acl::reject.
Referenced by olsr_com_handle_htmlsite(), olsr_com_handle_txtcommand(), and parse_http_request().

| void ip_acl_add | ( | struct ip_acl * | acl, | |
| const union olsr_ip_addr * | net, | |||
| uint8_t | prefix_len, | |||
| bool | reject | |||
| ) |
Definition at line 63 of file olsr_ip_acl.c.
References ip_acl::accept, ip_prefix_list_add(), and ip_acl::reject.
Referenced by debuginfo_enable(), ip_acl_add_plugin_accept(), ip_acl_add_plugin_reject(), olsrd_plugin_init(), and txtinfo_init().

| void ip_acl_flush | ( | struct ip_acl * | acl | ) |
Definition at line 56 of file olsr_ip_acl.c.
References ip_acl::accept, ip_prefix_list_flush(), and ip_acl::reject.
Referenced by debuginfo_disable(), olsr_plugin_exit(), and txtinfo_exit().

| void ip_acl_init | ( | struct ip_acl * | acl | ) |
Definition at line 47 of file olsr_ip_acl.c.
References ip_acl::accept, ip_acl::default_accept, ip_acl::first_accept, list_init_head(), and ip_acl::reject.
Referenced by debuginfo_init(), my_init(), and txtinfo_init().

| void ip_acl_remove | ( | struct ip_acl * | acl, | |
| const union olsr_ip_addr * | net, | |||
| uint8_t | prefix_len, | |||
| bool | reject, | |||
| int | ip_version | |||
| ) |
Definition at line 69 of file olsr_ip_acl.c.
References ip_acl::accept, ip_prefix_list_remove(), and ip_acl::reject.

1.6.3