smb_xdr.h revision da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0
/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SMBSRV_SMB_XDR_H
#define _SMBSRV_SMB_XDR_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct smb_dr_kshare {
char *k_path;
char *k_sharename;
#ifdef _KERNEL
#define xdr_int8_t xdr_char
#define xdr_uint8_t xdr_u_char
#define xdr_int16_t xdr_short
#define xdr_uint16_t xdr_u_short
#else
#endif /* _KERNEL */
/* null-terminated string buffer */
typedef struct smb_dr_string {
char *buf;
/* byte buffer (non-null terminated) */
typedef struct smb_dr_bytes {
/*
* smb_dr_user_ctx/smb_dr_ulist data structures are defined to transfer
* the necessary information for all connected users via door to
* mlsvc. The smb_dr_user_ctx provides user context that will be part
* of the MLSVC rpc context.
*
* Both SMB session ID and SMB UID of smb_dr_user_ctx_t are used to
* uniquely identified the corresponding in-kernel SMB user object.
*/
#define SMB_DR_MAX_USERS 50
typedef struct smb_dr_user_ctx {
char *du_domain;
char *du_account;
char *du_workstation;
typedef struct smb_dr_ulist {
#ifdef __cplusplus
}
#endif
#endif /* _SMBSRV_SMB_XDR_H */