Electroneum
ipsecmod.h File Reference
#include "util/module.h"
#include "util/rbtree.h"
Include dependency graph for ipsecmod.h:

Go to the source code of this file.

Classes

struct  ipsecmod_env
 
struct  ipsecmod_qstate
 

Functions

int ipsecmod_init (struct module_env *env, int id)
 
void ipsecmod_deinit (struct module_env *env, int id)
 
void ipsecmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
 
void ipsecmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
 
void ipsecmod_clear (struct module_qstate *qstate, int id)
 
size_t ipsecmod_get_mem (struct module_env *env, int id)
 
struct module_func_blockipsecmod_get_funcblock (void)
 

Detailed Description

This file contains a module that facilitates opportunistic IPsec. It does so by also quering for the IPSECKEY for A/AAAA queries and calling a configurable hook (eg. signaling an IKE daemon) before replying.

Definition in file ipsecmod.h.

Function Documentation

◆ ipsecmod_clear()

void ipsecmod_clear ( struct module_qstate qstate,
int  id 
)

clear the ipsecmod query-specific contents out of qstate

◆ ipsecmod_deinit()

void ipsecmod_deinit ( struct module_env env,
int  id 
)

Deinit the ipsecmod module

◆ 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".

◆ ipsecmod_get_mem()

size_t ipsecmod_get_mem ( struct module_env env,
int  id 
)

return memory estimate for the ipsecmod module

◆ 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

◆ ipsecmod_init()

int ipsecmod_init ( struct module_env env,
int  id 
)

Init the ipsecmod module

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