/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SMBSRV_SMBINFO_H
#define _SMBSRV_SMBINFO_H
#include <smbsrv/smb_inet.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Native OS types used in SmbSessionSetupX.
*/
#ifndef NATIVE_OS_DEFINED
#define NATIVE_OS_DEFINED
#endif /* NATIVE_OS_DEFINED */
/*
* Native lanman types in SmbSessionSetupX. Note that these values
* are not directly related to the negotiated protocol dialect.
*/
#ifndef NATIVE_LANMAN_DEFINED
#define NATIVE_LANMAN_DEFINED
#endif /* NATIVE_LANMAN_DEFINED */
/* PDC types to be used in user authentication process */
#define PDC_UNKNOWN 0
/*
* Please replace the use of MAX_NETWORKS with SMB_PI_MAX_NETWORKS if
* you find it used in conjunction with smbparm_info and maybe one day
* there will be just a single definition (here) throughout the code.
*/
#ifndef MAX_NETWORKS
#endif /* MAX_NETWORKS */
/*
* Some older clients (Windows 98) only handle the low byte
* of the max workers value. If the low byte is less than
* SMB_PI_MAX_WORKERS_MIN we set it to SMB_PI_MAX_WORKERS_MIN.
* SMB_PI_MAX_WORKERS_MIN must therefore be < 256
*/
/*
* configured via SMB_CI_INITIAL_CREDITS, SMB_CI_MAXIMUM_CREDITS
*/
/*
* sv_size is used by the RPC services and should be set to
* sizeof (smb_version_t).
*/
typedef struct smb_version {
/* See also: smb_ioc_cfg_t */
typedef struct smb_kmod_cfg {
/*
* Major version numbers
*/
/*
* Minor version numbers
*/
#define SMB_MINOR_NT 0
#define SMB_MINOR_2000 0
#define SMB_MINOR_VISTA 0
#define SMB_MINOR_2008 0
/*
* Max version length in string format
*/
int smbnative_os_value(const char *);
int smbnative_lm_value(const char *);
int smbnative_pdc_value(const char *);
const char *smbnative_os_str(smb_version_t *);
const char *smbnative_lm_str(smb_version_t *);
/*
* Support for passthrough authentication.
*/
/*
* Defined SMB1, SMB2(+) protocol versions, as returned by
* smb_config_get_max_protocol()
*/
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SMBINFO_H */