#include <stdio.h>#include <pcre.h>#include "../../mi/mi.h"#include "../../locking.h"


Go to the source code of this file.
Data Structures | |
| struct | lcr_info |
Defines | |
| #define | MAX_PREFIX_LEN 32 |
| #define | MAX_URI_LEN 256 |
Functions | |
| int | mi_print_gws (struct mi_node *rpl) |
| int | mi_print_lcrs (struct mi_node *rpl) |
| int | reload_gws_and_lcrs (void) |
Variables | |
| unsigned int | lcr_hash_size_param |
| gen_lock_t * | reload_lock |
| #define MAX_PREFIX_LEN 32 |
| #define MAX_URI_LEN 256 |
Definition at line 39 of file lcr_mod.h.
Referenced by add_gws_into_avps(), generate_uris(), next_gw(), and reload_gws_and_lcrs().
| int mi_print_gws | ( | struct mi_node * | rpl | ) |
Definition at line 1394 of file lcr_mod.c.
References add_mi_attr(), add_mi_node_child(), addf_mi_attr(), ip_addr::addr32, ip_addr::af, int2str(), ip_addr2a(), ip_addr::len, len, MI_DUP_VALUE, NULL, port, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, SIP_URI_T, and ip_addr::u.
Referenced by mi_lcr_gw_dump().
| int mi_print_lcrs | ( | struct mi_node * | rpl | ) |
Definition at line 1488 of file lcr_mod.c.
References add_mi_attr(), add_mi_node_child(), lcr_info::from_uri, lcr_info::from_uri_len, lcr_info::grp_id, int2str(), lcr_hash_size_param, len, MI_DUP_VALUE, lcr_info::next, NULL, lcr_info::prefix, lcr_info::prefix_len, and lcr_info::priority.
Referenced by mi_lcr_lcr_dump().
| int reload_gws_and_lcrs | ( | void | ) |
Definition at line 981 of file lcr_mod.c.
References db_func::close, comp_gw_grps(), DB_CAP_FETCH, DB_CAPABILITY, DB_INT, DB_STRING, db_func::fetch_result, fetch_rows_param, find_first_gw(), gw_grp::first, lcr_info::first_gw, db_func::free_result, lcr_info::from_uri_len, lcr_info::grp_id, db_func::init, insert_gw(), gw_info::ip_addr, lcr_hash_table_contents_free(), lcr_hash_table_insert(), link_gw_grps(), LM_CRIT, LM_DBG, LM_ERR, MAX_HOST_LEN, MAX_PREFIX_LEN, MAX_TAG_LEN, MAX_URI_LEN, MAX_USER_LEN, NULL, port, prefix, lcr_info::prefix_len, prefix_len_insert(), priority, PROTO_NONE, PROTO_SCTP, PROTO_TCP, PROTO_TLS, PROTO_UDP, db_func::query, reg_ex_comp(), RES_ROW_N, RES_ROWS, ROW_VALUES, shm_free, SIP_URI_T, SIPS_URI_T, db_func::use_table, VAL_INT, VAL_NULL, VAL_STRING, and VAL_TYPE.
Referenced by mi_lcr_reload(), and mod_init().
| unsigned int lcr_hash_size_param |
Definition at line 234 of file lcr_mod.c.
Referenced by do_load_gws(), lcr_hash_table_contents_free(), mi_print_lcrs(), mod_init(), and prefix_len_insert().
| gen_lock_t* reload_lock |
Definition at line 183 of file lcr_mod.c.
Referenced by free_shared_memory(), load_pcres(), mi_lcr_reload(), mod_init(), and w_pcre_match_group().
1.5.6