#include "../../parser/msg_parser.h"


Go to the source code of this file.
Functions | |
| int | allow_trusted (struct sip_msg *_msg, char *_s1, char *_s2) |
| int | allow_trusted_0 (struct sip_msg *_msg, char *str1, char *str2) |
| int | allow_trusted_2 (struct sip_msg *_msg, char *_src_ip_sp, char *_proto_sp) |
| void | clean_trusted (void) |
| int | init_child_trusted (int rank) |
| int | init_trusted (void) |
| int | mi_init_trusted (void) |
| int | reload_trusted_table (void) |
Variables | |
| struct trusted_list *** | hash_table |
| struct trusted_list ** | hash_table_1 |
| struct trusted_list ** | hash_table_2 |
| int allow_trusted | ( | struct sip_msg * | _msg, | |
| char * | _s1, | |||
| char * | _s2 | |||
| ) |
| int allow_trusted_0 | ( | struct sip_msg * | _msg, | |
| char * | str1, | |||
| char * | str2 | |||
| ) |
Definition at line 447 of file trusted.c.
References allow_trusted(), ip_addr2a(), receive_info::proto, sip_msg::rcv, and receive_info::src_ip.
| int allow_trusted_2 | ( | struct sip_msg * | _msg, | |
| char * | _src_ip_sp, | |||
| char * | _proto_sp | |||
| ) |
Definition at line 458 of file trusted.c.
References allow_trusted(), _pv_value::flags, LM_ERR, trusted_list::proto, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, pv_get_spec_value(), PV_VAL_STR, _pv_value::rs, _str::s, and trusted_list::src_ip.
| void clean_trusted | ( | void | ) |
Definition at line 271 of file trusted.c.
References free_hash_table(), and shm_free.
Referenced by mod_exit().
| int init_child_trusted | ( | int | rank | ) |
Definition at line 227 of file trusted.c.
References db_func::close, db_check_table_version(), db_mode, db_url, DISABLE_CACHE, db_func::init, LM_ERR, _str::s, TABLE_VERSION, and trusted_table.
Referenced by child_init().
| int init_trusted | ( | void | ) |
Definition at line 148 of file trusted.c.
References db_func::close, db_bind_mod(), DB_CAP_QUERY, DB_CAPABILITY, db_check_table_version(), db_mode, db_url, ENABLE_CACHE, free_hash_table(), db_func::init, LM_CRIT, LM_ERR, LM_INFO, new_hash_table(), reload_trusted_table(), _str::s, shm_free, shm_malloc(), TABLE_VERSION, and trusted_table.
Referenced by mod_init().
| int mi_init_trusted | ( | void | ) |
Definition at line 256 of file trusted.c.
References db_url, db_func::init, LM_ERR, and _str::s.
Referenced by mi_trusted_child_init().
| int reload_trusted_table | ( | void | ) |
Definition at line 58 of file trusted.c.
References DB_STRING, empty_hash_table(), db_func::free_result, from_col, hash_table_insert(), LM_DBG, LM_ERR, new_hash_table(), NULL, trusted_list::pattern, proto_col, db_func::query, RES_ROW_N, RES_ROWS, ROW_N, ROW_VALUES, source_col, trusted_list::tag, tag_col, trusted_table, db_func::use_table, VAL_NULL, VAL_STRING, and VAL_TYPE.
Referenced by init_trusted(), and mi_trusted_reload().
| struct trusted_list*** hash_table |
Definition at line 83 of file domain_mod.c.
Referenced by hash_table_lookup(), mi_domain_dump(), mi_trusted_dump(), mi_trusted_reload(), and reload_domain_table().
| struct trusted_list** hash_table_1 |
| struct trusted_list** hash_table_2 |
1.5.6