|
| static int | error_response (struct module_qstate *qstate, int id, int rcode) |
| | Return an error. More...
|
| |
|
static struct mnl_socket * | open_mnl_socket () |
| |
|
static int | add_to_ipset (struct mnl_socket *mnl, const char *setname, const void *ipaddr, int af) |
| |
|
static void | ipset_add_rrset_data (struct ipset_env *ie, struct mnl_socket *mnl, struct packed_rrset_data *d, const char *setname, int af, const char *dname) |
| |
|
static int | ipset_check_zones_for_rrset (struct module_env *env, struct ipset_env *ie, struct mnl_socket *mnl, struct ub_packed_rrset_key *rrset, const char *setname, int af) |
| |
|
static int | ipset_update (struct module_env *env, struct dns_msg *return_msg, struct ipset_env *ie) |
| |
|
int | ipset_init (struct module_env *env, int id) |
| | Init the ipset module.
|
| |
|
void | ipset_deinit (struct module_env *env, int id) |
| | Deinit the ipset module.
|
| |
|
static int | ipset_new (struct module_qstate *qstate, int id) |
| |
|
void | ipset_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound) |
| | Operate on an event on a query (in qstate).
|
| |
|
void | ipset_inform_super (struct module_qstate *ATTR_UNUSED(qstate), int ATTR_UNUSED(id), struct module_qstate *ATTR_UNUSED(super)) |
| |
|
void | ipset_clear (struct module_qstate *qstate, int id) |
| | clear the ipset query-specific contents out of qstate
|
| |
|
size_t | ipset_get_mem (struct module_env *env, int id) |
| | return memory estimate for ipset module
|
| |
| struct module_func_block * | ipset_get_funcblock (void) |
| | Get the function block with pointers to the ipset functions. More...
|
| |
This file implements the ipset module. It can handle packets by putting the A and AAAA addresses that are configured in unbound.conf as type ipset (local-zone statements) into a firewall rule IPSet. For firewall blacklist and whitelist usage.