Lines Matching defs:kcfg
80 smb_load_kconfig(smb_kmod_cfg_t *kcfg)
85 bzero(kcfg, sizeof (smb_kmod_cfg_t));
88 kcfg->skc_maxworkers = (uint32_t)citem;
89 if ((kcfg->skc_maxworkers & 0xFF) < SMB_PI_MAX_WORKERS_MIN) {
90 kcfg->skc_maxworkers &= ~0xFF;
91 kcfg->skc_maxworkers += SMB_PI_MAX_WORKERS_MIN;
92 } else if (kcfg->skc_maxworkers > SMB_PI_MAX_WORKERS_MAX) {
93 kcfg->skc_maxworkers = SMB_PI_MAX_WORKERS_MAX;
97 kcfg->skc_keepalive = (uint32_t)citem;
99 kcfg->skc_keepalive = SMB_PI_MIN_KEEPALIVE;
101 kcfg->skc_keepalive = SMB_PI_MAX_KEEPALIVE;
104 kcfg->skc_maxconnections = (uint32_t)citem;
105 if ((kcfg->skc_maxconnections == 0) ||
106 (kcfg->skc_maxconnections > SMB_PI_MAX_CONNECTIONS_MAX))
107 kcfg->skc_maxconnections = SMB_PI_MAX_CONNECTIONS_MAX;
109 kcfg->skc_restrict_anon = smb_config_getbool(SMB_CI_RESTRICT_ANON);
110 kcfg->skc_enforce_vczero = smb_config_getbool(SMB_CI_ENFORCE_VCZERO);
111 kcfg->skc_signing_enable =
113 kcfg->skc_signing_required =
115 kcfg->skc_ipv6_enable = smb_config_getbool(SMB_CI_IPV6_ENABLE);
116 kcfg->skc_print_enable = smb_config_getbool(SMB_CI_PRINT_ENABLE);
117 kcfg->skc_oplock_enable = smb_config_getbool(SMB_CI_OPLOCK_ENABLE);
118 kcfg->skc_sync_enable = smb_config_getbool(SMB_CI_SYNC_ENABLE);
119 kcfg->skc_secmode = smb_config_get_secmode();
120 (void) smb_getdomainname_nb(kcfg->skc_nbdomain,
121 sizeof (kcfg->skc_nbdomain));
122 (void) smb_getnetbiosname(kcfg->skc_hostname,
123 sizeof (kcfg->skc_hostname));
124 (void) smb_config_getstr(SMB_CI_SYS_CMNT, kcfg->skc_system_comment,
125 sizeof (kcfg->skc_system_comment));
126 smb_config_get_version(&kcfg->skc_version);
127 kcfg->skc_execflags = smb_config_get_execinfo(NULL, NULL, 0);
128 kcfg->skc_extsec_enable = smb_config_getbool(SMB_CI_SVR_EXTSEC);
130 if (uuid_parse(guid_str, kcfg->skc_machine_guid) != 0)
131 bzero(kcfg->skc_machine_guid, UUID_LEN);