|
unbound 0.1
|
Python module for unbound. More...
Functions | |
| struct module_func_block * | pythonmod_get_funcblock (void) |
| Get the module function block. | |
| int | pythonmod_init (struct module_env *env, int id) |
| python module init | |
| void | pythonmod_deinit (struct module_env *env, int id) |
| python module deinit | |
| void | pythonmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound) |
| python module operate on a query | |
| void | pythonmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super) |
| python module | |
| void | pythonmod_clear (struct module_qstate *qstate, int id) |
| python module cleanup query state | |
| size_t | pythonmod_get_mem (struct module_env *env, int id) |
| python module alloc size routine | |
| int | python_inplace_cb_reply_generic (struct query_info *qinfo, struct module_qstate *qstate, struct reply_info *rep, int rcode, struct edns_data *edns, struct edns_option **opt_list_out, struct comm_reply *repinfo, struct regional *region, struct timeval *start_time, int id, void *python_callback) |
| Declared here for fptr_wlist access. | |
| int | python_inplace_cb_query_generic (struct query_info *qinfo, uint16_t flags, struct module_qstate *qstate, struct sockaddr_storage *addr, socklen_t addrlen, uint8_t *zone, size_t zonelen, struct regional *region, int id, void *python_callback) |
| Declared here for fptr_wlist access. | |
| int | python_inplace_cb_query_response (struct module_qstate *qstate, struct dns_msg *response, int id, void *python_callback) |
| Declared here for fptr_wlist access. | |
| int | python_inplace_cb_edns_back_parsed_call (struct module_qstate *qstate, int id, void *python_callback) |
| Declared here for fptr_wlist access. | |
Python module for unbound.
Calls python script.
| struct module_func_block * pythonmod_get_funcblock | ( | void | ) |
Get the module function block.
References pythonmod_block, and pythonmod_get_funcblock().
Referenced by checkconf(), module_funcs_avail(), and pythonmod_get_funcblock().
| int pythonmod_init | ( | struct module_env * | env, |
| int | id ) |
python module init
References module_env::cfg, pythonmod_env::data, pythonmod_env::dict, config_file::directory, pythonmod_env::fname, pythonmod_env::func_deinit, pythonmod_env::func_inform, pythonmod_env::func_init, pythonmod_env::func_operate, log_err(), log_py_err(), mainthr, module_env::modinfo, pythonmod_env::module, config_strlist::next, py_mod_count, config_file::python_script, pythonmod_init(), and config_strlist::str.
Referenced by fptr_whitelist_mod_init(), and pythonmod_init().
| void pythonmod_deinit | ( | struct module_env * | env, |
| int | id ) |
python module deinit
References pythonmod_env::data, pythonmod_env::dict, pythonmod_env::fname, pythonmod_env::func_deinit, pythonmod_env::func_inform, pythonmod_env::func_init, pythonmod_env::func_operate, inplace_cb_delete(), log_err(), log_py_err(), module_env::modinfo, pythonmod_env::module, py_mod_count, and pythonmod_deinit().
Referenced by fptr_whitelist_mod_deinit(), and pythonmod_deinit().
| void pythonmod_operate | ( | struct module_qstate * | qstate, |
| enum module_ev | event, | ||
| int | id, | ||
| struct outbound_entry * | outbound ) |
python module operate on a query
References pythonmod_clear(), pythonmod_get_mem(), and pythonmod_inform_super().
| void pythonmod_inform_super | ( | struct module_qstate * | qstate, |
| int | id, | ||
| struct module_qstate * | super ) |
python module
References pythonmod_qstate::data, module_qstate::env, module_qstate::ext_state, pythonmod_env::func_inform, log_err(), log_py_err(), log_query_info(), module_qstate::minfo, module_env::modinfo, module_error, pythonmod_inform_super(), module_qstate::qinfo, pythonmod_env::qstate, and VERB_ALGO.
Referenced by fptr_whitelist_mod_inform_super(), pythonmod_inform_super(), and pythonmod_operate().
| void pythonmod_clear | ( | struct module_qstate * | qstate, |
| int | id ) |
python module cleanup query state
References pythonmod_qstate::data, module_qstate::minfo, pythonmod_clear(), VERB_ALGO, and verbose().
Referenced by fptr_whitelist_mod_clear(), pythonmod_clear(), and pythonmod_operate().
| size_t pythonmod_get_mem | ( | struct module_env * | env, |
| int | id ) |
python module alloc size routine
References module_env::modinfo, pythonmod_get_mem(), VERB_ALGO, and verbose().
Referenced by fptr_whitelist_mod_get_mem(), pythonmod_get_mem(), and pythonmod_operate().
| int python_inplace_cb_reply_generic | ( | struct query_info * | qinfo, |
| struct module_qstate * | qstate, | ||
| struct reply_info * | rep, | ||
| int | rcode, | ||
| struct edns_data * | edns, | ||
| struct edns_option ** | opt_list_out, | ||
| struct comm_reply * | repinfo, | ||
| struct regional * | region, | ||
| struct timeval * | start_time, | ||
| int | id, | ||
| void * | python_callback ) |
Declared here for fptr_wlist access.
The definition is in interface.i.
References python_inplace_cb_reply_generic().
Referenced by fptr_whitelist_inplace_cb_reply_generic(), and python_inplace_cb_reply_generic().
| int python_inplace_cb_query_generic | ( | struct query_info * | qinfo, |
| uint16_t | flags, | ||
| struct module_qstate * | qstate, | ||
| struct sockaddr_storage * | addr, | ||
| socklen_t | addrlen, | ||
| uint8_t * | zone, | ||
| size_t | zonelen, | ||
| struct regional * | region, | ||
| int | id, | ||
| void * | python_callback ) |
Declared here for fptr_wlist access.
The definition is in interface.i.
References python_inplace_cb_query_generic().
Referenced by fptr_whitelist_inplace_cb_query(), and python_inplace_cb_query_generic().
| int python_inplace_cb_query_response | ( | struct module_qstate * | qstate, |
| struct dns_msg * | response, | ||
| int | id, | ||
| void * | python_callback ) |
Declared here for fptr_wlist access.
The definition is in interface.i.
References python_inplace_cb_query_response().
Referenced by fptr_whitelist_inplace_cb_query_response(), and python_inplace_cb_query_response().
| int python_inplace_cb_edns_back_parsed_call | ( | struct module_qstate * | qstate, |
| int | id, | ||
| void * | python_callback ) |
Declared here for fptr_wlist access.
The definition is in interface.i.
References python_inplace_cb_edns_back_parsed_call().
Referenced by fptr_whitelist_inplace_cb_edns_back_parsed(), and python_inplace_cb_edns_back_parsed_call().