unbound 0.1
ipsecmod.h File Reference

This file contains a module that facilitates opportunistic IPsec. More...

#include "util/module.h"
#include "util/rbtree.h"

Data Structures

struct  ipsecmod_env
 The global variable environment contents for the ipsecmod Shared between threads, this represents long term information. More...
struct  ipsecmod_qstate
 Per query state for the ipsecmod module. More...

Functions

int ipsecmod_init (struct module_env *env, int id)
 Init the ipsecmod module.
void ipsecmod_deinit (struct module_env *env, int id)
 Deinit the ipsecmod module.
void ipsecmod_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 ipsecmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
 Subordinate query done, inform this super request of its conclusion.
void ipsecmod_clear (struct module_qstate *qstate, int id)
 clear the ipsecmod query-specific contents out of qstate
size_t ipsecmod_get_mem (struct module_env *env, int id)
 return memory estimate for the ipsecmod module
struct module_func_block * ipsecmod_get_funcblock (void)
 Get the function block with pointers to the ipsecmod functions.

Detailed Description

This file contains a module that facilitates opportunistic IPsec.

It does so by also querying for the IPSECKEY for A/AAAA queries and calling a configurable hook (eg. signaling an IKE daemon) before replying.

Function Documentation

◆ ipsecmod_init()

int ipsecmod_init ( struct module_env * env,
int id )

Init the ipsecmod module.

References ipsecmod_init().

Referenced by fptr_whitelist_mod_init(), and ipsecmod_init().

◆ ipsecmod_deinit()

void ipsecmod_deinit ( struct module_env * env,
int id )

Deinit the ipsecmod module.

References ipsecmod_deinit().

Referenced by fptr_whitelist_mod_deinit(), and ipsecmod_deinit().

◆ ipsecmod_operate()

void ipsecmod_operate ( struct module_qstate * qstate,
enum module_ev event,
int id,
struct outbound_entry * outbound )

Operate on an event on a query (in qstate).

References ipsecmod_operate().

Referenced by fptr_whitelist_mod_operate(), and ipsecmod_operate().

◆ ipsecmod_inform_super()

void ipsecmod_inform_super ( struct module_qstate * qstate,
int id,
struct module_qstate * super )

Subordinate query done, inform this super request of its conclusion.

References ipsecmod_inform_super().

Referenced by fptr_whitelist_mod_inform_super(), and ipsecmod_inform_super().

◆ ipsecmod_clear()

void ipsecmod_clear ( struct module_qstate * qstate,
int id )

clear the ipsecmod query-specific contents out of qstate

References ipsecmod_clear().

Referenced by fptr_whitelist_mod_clear(), and ipsecmod_clear().

◆ ipsecmod_get_mem()

size_t ipsecmod_get_mem ( struct module_env * env,
int id )

return memory estimate for the ipsecmod module

References ipsecmod_get_mem().

Referenced by fptr_whitelist_mod_get_mem(), and ipsecmod_get_mem().

◆ ipsecmod_get_funcblock()

struct module_func_block * ipsecmod_get_funcblock ( void )

Get the function block with pointers to the ipsecmod functions.

Returns
the function block for "ipsecmod".

References ipsecmod_get_funcblock().

Referenced by ipsecmod_get_funcblock(), and module_funcs_avail().