nscd_cfgdef.h revision 0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * CDDL HEADER START
cb5caa98562cf06753163f558cbcfe30b8f4673adjl *
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * The contents of this file are subject to the terms of the
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * Common Development and Distribution License (the "License").
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * You may not use this file except in compliance with the License.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl *
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * or http://www.opensolaris.org/os/licensing.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * See the License for the specific language governing permissions
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * and limitations under the License.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl *
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * When distributing Covered Code, include this CDDL HEADER in each
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * If applicable, add the following below this CDDL HEADER, with the
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * fields enclosed by brackets "[]" replaced with your own identifying
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * information: Portions Copyright [yyyy] [name of copyright owner]
cb5caa98562cf06753163f558cbcfe30b8f4673adjl *
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * CDDL HEADER END
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * Use is subject to license terms.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#ifndef _NSCD_CFGDEF_H
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define _NSCD_CFGDEF_H
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#pragma ident "%Z%%M% %I% %E% SMI"
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#ifdef __cplusplus
cb5caa98562cf06753163f558cbcfe30b8f4673adjlextern "C" {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#endif
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include <stddef.h>
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include <limits.h>
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include <nss_dbdefs.h>
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include "nscd_config.h"
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include "nscd_log.h"
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#include "cache.h"
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * structure used for preliminary checking of an integer
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * configuration value
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int min;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int max;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_int_check_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * structure used for preliminary checking of a bitmap
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * configuration value
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_bitmap_t valid_bits;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_bitmap_check_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * structure used for preliminary checking of a string
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * configuration value
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_bool_t must_not_null;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int maxlen;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_str_check_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * Per nsswitch database config data
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_frontend_t fe;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t sw;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t cache;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_nsw_db_data_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * Per nsswitch database statistics data
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t sw;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t cache;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_stat_nsw_db_data_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * global statistics data
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_log_t log;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t sw;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t cache;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_stat_global_data_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * global config data
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_log_t log;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_frontend_t fe;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_selfcred_t sc;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_switch_t sw;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_cache_t cache;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_global_data_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * structure for handling the switch database specific group
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * or parameter default
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjltypedef struct nscd_cfg_nsw_spc_default {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl char *db;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int group_off;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int param_off;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl void *data; /* pointer or link to data */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl int data_len;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl} nscd_cfg_nsw_spc_default_t;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * name service switch source (repository) table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlnscd_cfg_id_t _nscd_cfg_nsw_src[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 0, "files" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 1, "ldap" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 2, "nis" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 3, "nisplus" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 4, "dns" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 5, "compat" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 6, "user" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { -1, NULL }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * name service related smf service table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * (the order of the services should match the order of the source
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * listed above, 0: files, 1: ldap, 2: nis, 3: nisplus. dns is
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * not needed)
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlnscd_cfg_id_t _nscd_cfg_smf_services[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 0, "svc:/system/name-service-cache:default"},
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 1, "svc:/network/ldap/client:default" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 2, "svc:/network/nis/client:default" },
ad0e80f7538b612141768bfda60009eb76550ee7michen { 3, "svc:/network/rpc/bind:default" },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { -1, NULL }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * name service database table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlnscd_cfg_id_t _nscd_cfg_nsw_db[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 0, NSS_DBNAM_PASSWD },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 1, NSS_DBNAM_GROUP },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 2, NSS_DBNAM_HOSTS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 3, NSS_DBNAM_IPNODES },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 4, NSS_DBNAM_EXECATTR },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 5, NSS_DBNAM_PROFATTR },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 6, NSS_DBNAM_USERATTR },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 7, NSS_DBNAM_NETWORKS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 8, NSS_DBNAM_PROTOCOLS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 9, NSS_DBNAM_RPC },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 10, NSS_DBNAM_ETHERS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 11, NSS_DBNAM_NETMASKS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 12, NSS_DBNAM_BOOTPARAMS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 13, NSS_DBNAM_PUBLICKEY },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 14, NSS_DBNAM_NETGROUP },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 15, NSS_DBNAM_SERVICES },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 16, NSS_DBNAM_PRINTERS },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 17, NSS_DBNAM_AUTHATTR },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 18, NSS_DBNAM_PROJECT },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 19, NSS_DBNAM_SHADOW },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 20, NSS_DBNAM_AUDITUSER },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 21, NSS_DBNAM_TSOL_TP },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 22, NSS_DBNAM_TSOL_RH },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /* pseudo-databases for the compat backend */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 23, NSS_DBNAM_PASSWD_COMPAT },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 24, NSS_DBNAM_GROUP_COMPAT },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSS_DBNAM_COMPAT_NUM_DB 5
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * pseudo-databases that use the switch policy that is
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * configured for NSS_DBNAM_PASSWD_COMPAT
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 25, NSS_DBNAM_PASSWD },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 26, NSS_DBNAM_SHADOW },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 27, NSS_DBNAM_AUDITUSER },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 28, NSS_DBNAM_USERATTR },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * pseudo-database that uses the switch policy that is
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * configured for NSS_DBNAM_GROUP_COMPAT
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { 29, NSS_DBNAM_GROUP },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { -1, NULL }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * A special way to indicate all switch databases
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_id_t _nscd_cfg_nsw_alldb = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_NSW_ALLDB_INDEX,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_NSW_ALLDB
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * data for preliminary checking of the log configuration
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_str_check_t NSCD_CFG_LOGFILE_PCHECK =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {nscd_false, PATH_MAX};
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_bitmap_check_t NSCD_CFG_LOGCOMP_PCHECK =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {NSCD_LOG_ALL};
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_bitmap_check_t NSCD_CFG_LOGLEVEL_PCHECK =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {NSCD_LOG_LEVEL_ALL};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/* data for preliminary checking of the switch configuration */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_str_check_t NSCD_CFG_NSWCFGSTR_PCHECK =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {nscd_true, 128};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * macros for defining the static param table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_PGROUP_DESC(pn, type, pflag, gf, g_in_t, pcheck_p,\
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nfunc_name, vfunc_name) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, pn}, type, (NSCD_CFG_PFLAG_GROUP | pflag), \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0,\
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(g_in_t, gf), offsetof(g_in_t, gf), -1, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen pcheck_p, nfunc_name, vfunc_name \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_PARAM_DESC(pn, type, pflag, pf, p_in_t, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl gf, g_in_t, pcheck_p, nfunc_name, vfunc_name) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, pn}, type, pflag, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(p_in_t, pf), offsetof(p_in_t, pf), -1, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(g_in_t, gf), offsetof(g_in_t, gf), -1, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen pcheck_p, nfunc_name, vfunc_name \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_PGROUP_DESC_NULL \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, NULL}, -1, NSCD_CFG_PFLAG_GROUP, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NULL, NULL, NULL \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen/* nscd internal cfg_*_notify() cfg_*_verify() and cfg_*_get_stat() */
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_log_notify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_log_verify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_frontend_notify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_frontend_verify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_selfcred_notify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_selfcred_verify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_switch_notify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_switch_verify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_cache_notify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_cache_verify();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_log_get_stat();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_switch_get_stat();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michenextern nscd_rc_t _nscd_cfg_cache_get_stat();
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen/*
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen * the following macros are used to indicate a parameter's
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen * notify/verify/get_stat functions are the same as those
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen * of the group
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen */
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen#define NSCD_CFG_FUNC_NOTIFY_AS_GROUP ((nscd_cfg_func_notify_t)-1)
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen#define NSCD_CFG_FUNC_VERIFY_AS_GROUP ((nscd_cfg_func_verify_t)-1)
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen#define NSCD_CFG_FUNC_GET_STAT_AS_GROUP ((nscd_cfg_func_get_stat_t)-1)
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * the static config parameter description table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_param_desc_t _nscd_cfg_param_desc[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-global-log",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_log_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_log_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "logfile",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_STRING,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_VLEN_DATA,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl logfile,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_log_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &NSCD_CFG_LOGFILE_PCHECK,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "debug-level",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BITMAP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl debug_level,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_log_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &NSCD_CFG_LOGLEVEL_PCHECK,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "debug-components",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BITMAP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl debug_comp,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_log_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &NSCD_CFG_LOGCOMP_PCHECK,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-global-frontend",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl fe,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_frontend_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_frontend_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "common-worker-threads",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_SEND_BIT_SELECTED |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl common_worker_threads,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_frontend_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl fe,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-hit-threads",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_SEND_BIT_SELECTED |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache_hit_threads,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_frontend_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl fe,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-global-selfcred",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sc,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_selfcred_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_selfcred_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "enable-selfcred",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable_selfcred,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_selfcred_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sc,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "max-per-user-nscd",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl max_per_user_nscd,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_selfcred_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sc,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "per-user-nscd-ttl",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl per_user_nscd_ttl,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_selfcred_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sc,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-global-switch",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-enable-lookup",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable_lookup_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-enable-loopback-checking",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable_loopback_checking_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-check-smf-state-interval",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl check_smf_state_interval_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-global-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SET_ALL_DB |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-enable-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_global_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /* non-global config param from this point on */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-frontend",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl fe,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_frontend_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_frontend_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "worker-thread-per-nsw-db",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl worker_thread_per_nsw_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_frontend_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl fe,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-switch",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "nsw-config-string",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_STRING,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_VLEN_DATA |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_LINKED,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &NSCD_CFG_NSWCFGSTR_PCHECK,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "nsw-config-database",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_STRING,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_VLEN_DATA |
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_HIDDEN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &NSCD_CFG_NSWCFGSTR_PCHECK,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "enable-lookup",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable_lookup,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "enable-loopback-checking",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable_loopback_checking,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "max-nsw-state-per-db",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl max_nsw_state_per_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "max-nsw-state-per-thread",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl max_nsw_state_per_thread,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "max-getent-ctx-per-db",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl max_getent_ctx_per_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "param-group-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_INIT_SEND_WHOLE_GROUP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_notify,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_verify),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "enable-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl enable,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "enable-per-user-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl per_user,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "avoid-nameservice",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl avoid_ns,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "check-files",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl check_files,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "check-file-interval",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl check_interval,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "positive-time-to-live",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl pos_ttl,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "negative-time-to-live",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl neg_ttl,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "keep-hot-count",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl keephot,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "hint-size",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl hint_size,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "maximum-entries-allowed",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl maxentries,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "suggested-size",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_OBSOLETE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl suggestedsize,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PARAM_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "old-data-ok",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_BOOLEAN,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PFLAG_OBSOLETE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl old_data_ok,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_nsw_db_data_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_NOTIFY_AS_GROUP,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_VERIFY_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_PGROUP_DESC_NULL
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * defaults for the global configuration
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_global_data_t nscd_cfg_global_default = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_global_log_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_GLOBAL_LOG,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_LOG_LEVEL_NONE, /* debug_level */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_LOG_CACHE, /* debug_comp */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_global_frontend_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_GLOBAL_FRONTEND,
e37190e5b4531a897e4191a30b8f41678b582e25michen 100, /* common_worker_threads */
e37190e5b4531a897e4191a30b8f41678b582e25michen 100, /* cache_hit_threads */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_global_selfcred_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_GLOBAL_SELFCRED,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_true, /* enable_selfcred */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 1000, /* max_per_user_nscd */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 120, /* per_user_nscd_ttl: 120 seconds */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_global_switch_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_GLOBAL_SWITCH,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_true, /* enable_lookup_g */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_false, /* enable_loopback_checking_g */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 120, /* check_smf_state_interval_g */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_global_cache_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GLOBAL_CACHE_DEFAULTS
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * defaults for the per switch database configuration
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_nsw_db_data_t nscd_cfg_nsw_db_data_default = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_frontend_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_FRONTEND,
e37190e5b4531a897e4191a30b8f41678b582e25michen 50, /* worker_thread_per_nsw_db */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_switch_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_GROUP_INFO_SWITCH,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "nis files", /* nsw_config_string */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL, /* nsw_config_db */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_true, /* enable_lookup */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_false, /* enable_loopback_checking */
124771bb5f403108fb9ed84bf6083c8d427d55ffmichen 288, /* max_nsw_state_per_db */
124771bb5f403108fb9ed84bf6083c8d427d55ffmichen 32, /* max_nsw_state_per_thread */
124771bb5f403108fb9ed84bf6083c8d427d55ffmichen 256, /* max_getent_ctx_per_db */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl },
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * nscd_cfg_cache_t
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_CACHE_DEFAULTS
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * macros for defining the database specific defaults
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_DB_DEFAULT_PARAM(db, gf, pf, gt, defaddr, deflen) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl db, offsetof(nscd_cfg_nsw_db_data_t, gf), \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl offsetof(gt, pf), defaddr, deflen \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_DB_DEFAULT_GROUP(db, gf, defaddr, deflen) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl db, offsetof(nscd_cfg_nsw_db_data_t, gf), \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, defaddr, deflen \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_DB_DEFAULT_NULL \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL, 0, 0, NULL, 0 \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * shadow, user_attr, and audit_user use the same switch policy
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * as that of passwd. exec_attr use that of prof_attr.
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_shadow_cfg_db = NSS_DBNAM_PASSWD;
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_userattr_cfg_db = NSS_DBNAM_PASSWD;
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_auuser_cfg_db = NSS_DBNAM_PASSWD;
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_execattr_cfg_db = NSS_DBNAM_PROFATTR;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * default switch policy for pseudo-databases passwd_compat and
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * and group_compa is "nis"
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_def_passwd_compat = NSS_DEFCONF_PASSWD_COMPAT;
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic char *nscd_cfg_def_group_compat = NSS_DEFCONF_GROUP_COMPAT;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_nsw_spc_default_t nscd_cfg_passwd_cfg_link =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_PASSWD,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(nscd_cfg_switch_t, nsw_config_string));
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_nsw_spc_default_t nscd_cfg_profattr_cfg_link =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_PROFATTR,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NULL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(nscd_cfg_switch_t, nsw_config_string));
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * switch database specific defaults
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlnscd_cfg_nsw_spc_default_t _nscd_cfg_nsw_spc_default[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_SHADOW,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_shadow_cfg_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_shadow_cfg_db)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_USERATTR,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_userattr_cfg_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_userattr_cfg_db)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_AUDITUSER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_auuser_cfg_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_auuser_cfg_db)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_EXECATTR,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_execattr_cfg_db,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_execattr_cfg_db)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_PASSWD_COMPAT,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_def_passwd_compat,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_def_passwd_compat)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_GROUP_COMPAT,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_def_group_compat,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (nscd_cfg_def_group_compat)),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_NULL
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * switch database specific defaults that are linked to
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * those of other databases
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlnscd_cfg_nsw_spc_default_t _nscd_cfg_nsw_link_default[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_SHADOW,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_passwd_cfg_link,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_USERATTR,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_passwd_cfg_link,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_AUDITUSER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_passwd_cfg_link,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_PARAM(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_EXECATTR,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nsw_config_string,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl &nscd_cfg_profattr_cfg_link,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DB_DEFAULT_NULL
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * macros for defining the static stats table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_SGROUP_DESC(sn, type, sflag, gi, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl gf, g_in_t, gsfunc_name) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, sn}, type, NSCD_CFG_SFLAG_GROUP | sflag, gi, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0,\
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(g_in_t, gf), offsetof(g_in_t, gf), -1, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen gsfunc_name \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_STAT_DESC(sn, type, sflag, sf, s_in_t, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl gf, g_in_t, gsfunc_name) \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, sn}, type, sflag, NSCD_CFG_GROUP_INFO_NULL, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(s_in_t, sf), offsetof(s_in_t, sf), -1, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_SIZEOF(g_in_t, gf), offsetof(g_in_t, gf), -1, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen gsfunc_name \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#define NSCD_CFG_SGROUP_DESC_NULL \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl { \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl {-1, NULL}, -1, NSCD_CFG_SFLAG_GROUP, NULL, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0, \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl 0, 0, 0, \
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NULL \
cb5caa98562cf06753163f558cbcfe30b8f4673adjl }
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/*
cb5caa98562cf06753163f558cbcfe30b8f4673adjl * the static statistics description table
cb5caa98562cf06753163f558cbcfe30b8f4673adjl */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic nscd_cfg_stat_desc_t _nscd_cfg_stat_desc[] = {
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "stat-group-global-log",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_GROUP_INFO_GLOBAL_LOG,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_log_get_stat),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "entries-logged",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl entries_logged,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_log_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl log,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "stat-group-global-switch",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_GROUP_INFO_GLOBAL_SWITCH,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_get_stat),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-lookup-request-received",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_received_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-lookup-request-queued",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_queued_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-lookup-request-in-progress",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_in_progress_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-lookup-request-succeeded",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_succeeded_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-lookup-request-failed",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_failed_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-loopback-nsw-db-skipped",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl loopback_nsw_db_skipped_g,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "stat-group-global-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_GROUP_INFO_CACHE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_get_stat),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-hits-on-positive",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl pos_hits,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-hits-on-negative",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl neg_hits,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-misses-on-positive",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl pos_misses,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-misses-on-negative",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl neg_misses,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-queries-queued",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl wait_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-total-cache-entries",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl entries,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-complete-cache-invalidations",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl invalidate_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-queries-dropped",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl drop_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "global-cache-hit-rate",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_PERCENT,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GLOBAL,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl hitrate,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_global_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl /* non-global stat from this point on */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "stat-group-switch",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GROUP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_GROUP_INFO_SWITCH,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_switch_get_stat),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "lookup-request-received",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_received,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "lookup-request-queued",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_queued,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "lookup-request-in-progress",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_in_progress,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "lookup-request-succeeded",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_succeeded,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "lookup-request-failed",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl lookup_request_failed,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "loopback-nsw-db-skipped",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl loopback_nsw_db_skipped,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_switch_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sw,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "stat-group-cache",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_GROUP,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_GROUP_INFO_CACHE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen _nscd_cfg_cache_get_stat),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-hits-on-positive",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl pos_hits,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-hits-on-negative",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl neg_hits,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-misses-on-positive",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl pos_misses,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-misses-on-negative",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl neg_misses,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-queries-queued",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl wait_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "total-cache-entries",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl entries,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "complete-cache-invalidations",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_INTEGER,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl invalidate_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-hit-rate",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_PERCENT,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl hitrate,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_STAT_DESC(
cb5caa98562cf06753163f558cbcfe30b8f4673adjl "cache-queries-dropped",
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_DATA_PERCENT,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SFLAG_NONE,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl drop_count,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_cache_t,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl cache,
cb5caa98562cf06753163f558cbcfe30b8f4673adjl nscd_cfg_stat_nsw_db_data_t,
0dfdd7f38ea07ffc9a4b245c94185c923f4bb0a3michen NSCD_CFG_FUNC_GET_STAT_AS_GROUP),
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSCD_CFG_SGROUP_DESC_NULL
cb5caa98562cf06753163f558cbcfe30b8f4673adjl};
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/* number of entries in the static tables */
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_nsw_src =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_nsw_src) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_nsw_src[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_smf_services =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_smf_services) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_smf_services[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/* number of supported nsw databases (including pseudo ones) */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_nsw_db_all =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_nsw_db) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_nsw_db[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl/* number of supported nsw databases (not including pseudo ones) */
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_nsw_db =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_nsw_db) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_nsw_db[0]) - 1) -
cb5caa98562cf06753163f558cbcfe30b8f4673adjl NSS_DBNAM_COMPAT_NUM_DB;
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic int _nscd_cfg_num_param =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_param_desc) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_param_desc[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlstatic int _nscd_cfg_num_stat =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_stat_desc) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_stat_desc[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_nsw_default =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_nsw_spc_default) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_nsw_spc_default[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjlint _nscd_cfg_num_link_default =
cb5caa98562cf06753163f558cbcfe30b8f4673adjl (sizeof (_nscd_cfg_nsw_link_default) /
cb5caa98562cf06753163f558cbcfe30b8f4673adjl sizeof (_nscd_cfg_nsw_link_default[0]) - 1);
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#ifdef __cplusplus
cb5caa98562cf06753163f558cbcfe30b8f4673adjl}
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#endif
cb5caa98562cf06753163f558cbcfe30b8f4673adjl
cb5caa98562cf06753163f558cbcfe30b8f4673adjl#endif /* _NSCD_CFGDEF_H */