• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • Directories
  • File List
  • Globals

cfg_core.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Copyright (C) 2007 iptelorg GmbH
00005  *
00006  * This file is part of ser, a free SIP server.
00007  *
00008  * ser is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * For a license to use the ser software under conditions
00014  * other than those described here, or to purchase support for this
00015  * software, please contact iptel.org by e-mail at the following addresses:
00016  *    info@iptel.org
00017  *
00018  * ser is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  * HOWTO:
00028  *      If you need a new configuration variable within the core, put it into
00029  *      struct cfg_goup_core, and define it in cfg_core.c:core_cfg_def array.
00030  *      The default value of the variable must be inserted into
00031  *      cfg_core.c:default_core_cfg
00032  *      Include this header file in your source code, and retrieve the
00033  *      value with cfg_get(core, core_cfg, variable_name).
00034  *
00035  * History
00036  * -------
00037  *  2007-12-03  Initial version (Miklos)
00038  */
00047 #ifndef _CFG_CORE_H
00048 #define _CFG_CORE_H
00049 
00050 #include "cfg/cfg.h"
00051 
00052 extern void     *core_cfg;
00053 
00055 struct cfg_group_core {
00056         int     debug;
00057         int     log_facility;
00058         int memdbg; 
00059 #ifdef USE_DST_BLACKLIST
00060         /* blacklist */
00061         int     use_dst_blacklist; 
00062         unsigned int    blst_timeout; 
00063         unsigned int    blst_max_mem; 
00065         unsigned int    blst_udp_imask;  /* ignore mask for udp */
00066         unsigned int    blst_tcp_imask;  /* ignore mask for tcp */
00067         unsigned int    blst_tls_imask;  /* ignore mask for tls */
00068         unsigned int    blst_sctp_imask; /* ignore mask for sctp */
00069 #endif
00070         /* resolver */
00071         int dns_try_ipv6;
00072         int dns_try_naptr;
00073         int dns_udp_pref;
00074         int dns_tcp_pref;
00075         int dns_tls_pref;
00076         int dns_sctp_pref;
00077         int dns_retr_time;
00078         int dns_retr_no;
00079         int dns_servers_no;
00080         int dns_search_list;
00081         int dns_search_fmatch;
00082         int dns_reinit;
00083         /* DNS cache */
00084 #ifdef USE_DNS_CACHE
00085         int use_dns_cache;
00086         int dns_cache_flags;
00087         int use_dns_failover;
00088         int dns_srv_lb;
00089         unsigned int dns_neg_cache_ttl;
00090         unsigned int dns_cache_min_ttl;
00091         unsigned int dns_cache_max_ttl;
00092         unsigned int dns_cache_max_mem;
00093         int dns_cache_del_nonexp;
00094         int dns_cache_rec_pref;
00095 #endif
00096 #ifdef PKG_MALLOC
00097         int mem_dump_pkg;
00098 #endif
00099 #ifdef SHM_MEM
00100         int mem_dump_shm;
00101 #endif
00102         int max_while_loops;
00103         int udp_mtu; 
00104         int udp_mtu_try_proto; 
00105         int udp4_raw; /* use raw sockets for sending on udp ipv 4 */
00106         int udp4_raw_mtu; /* mtu used when using udp raw socket */
00107         int udp4_raw_ttl; /* ttl used when using udp raw sockets */
00108         int force_rport; 
00109         int memlog; 
00110         int mem_summary; 
00111         int mem_safety; 
00112         int mem_join; 
00113         int corelog; 
00114         int latency_log; 
00115         int latency_limit_db; 
00116         int latency_limit_action; 
00117 };
00118 
00119 extern struct cfg_group_core default_core_cfg;
00120 extern cfg_def_t core_cfg_def[];
00121 
00122 #endif /* _CFG_CORE_H */

Generated on Tue May 22 2012 13:10:03 for SIP Router by  doxygen 1.7.1