1*5331Samw /* 2*5331Samw * CDDL HEADER START 3*5331Samw * 4*5331Samw * The contents of this file are subject to the terms of the 5*5331Samw * Common Development and Distribution License (the "License"). 6*5331Samw * You may not use this file except in compliance with the License. 7*5331Samw * 8*5331Samw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5331Samw * or http://www.opensolaris.org/os/licensing. 10*5331Samw * See the License for the specific language governing permissions 11*5331Samw * and limitations under the License. 12*5331Samw * 13*5331Samw * When distributing Covered Code, include this CDDL HEADER in each 14*5331Samw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5331Samw * If applicable, add the following below this CDDL HEADER, with the 16*5331Samw * fields enclosed by brackets "[]" replaced with your own identifying 17*5331Samw * information: Portions Copyright [yyyy] [name of copyright owner] 18*5331Samw * 19*5331Samw * CDDL HEADER END 20*5331Samw */ 21*5331Samw 22*5331Samw /* 23*5331Samw * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*5331Samw * Use is subject to license terms. 25*5331Samw */ 26*5331Samw 27*5331Samw #ifndef _SMBD_H 28*5331Samw #define _SMBD_H 29*5331Samw 30*5331Samw #pragma ident "%Z%%M% %I% %E% SMI" 31*5331Samw 32*5331Samw #ifdef __cplusplus 33*5331Samw extern "C" { 34*5331Samw #endif 35*5331Samw 36*5331Samw #include <sys/types.h> 37*5331Samw #include <smbsrv/smb_token.h> 38*5331Samw #include <smbsrv/libsmb.h> 39*5331Samw #include <smbsrv/libmlsvc.h> 40*5331Samw 41*5331Samw extern int smb_nicmon_start(void); 42*5331Samw extern void smb_nicmon_stop(void); 43*5331Samw extern int smb_mlsvc_srv_start(void); 44*5331Samw extern void smb_mlsvc_srv_stop(void); 45*5331Samw extern int smb_lmshrd_srv_start(void); 46*5331Samw extern void smb_lmshrd_srv_stop(void); 47*5331Samw 48*5331Samw extern int smb_doorsrv_start(void); 49*5331Samw extern void smb_doorsrv_stop(void); 50*5331Samw extern int smb_ntgroup_doorsrv_start(void); 51*5331Samw extern void smb_ntgroup_doorsrv_stop(void); 52*5331Samw 53*5331Samw extern int smb_netlogon_init(void); 54*5331Samw 55*5331Samw extern smb_token_t *smbd_user_auth_logon(netr_client_t *); 56*5331Samw extern void smbd_user_nonauth_logon(uint32_t); 57*5331Samw extern void smbd_user_auth_logoff(uint32_t); 58*5331Samw 59*5331Samw typedef struct smbd { 60*5331Samw const char *s_version; /* smbd version string */ 61*5331Samw const char *s_pname; /* basename to use for messages */ 62*5331Samw pid_t s_pid; /* process-ID of current daemon */ 63*5331Samw uid_t s_uid; /* UID of current daemon */ 64*5331Samw gid_t s_gid; /* GID of current daemon */ 65*5331Samw int s_fg; /* Run in foreground */ 66*5331Samw int s_drv_fd; /* Handle for SMB kernel driver */ 67*5331Samw int s_shutdown_flag; /* Fields for shutdown control */ 68*5331Samw int s_sigval; 69*5331Samw } smbd_t; 70*5331Samw 71*5331Samw #ifdef __cplusplus 72*5331Samw } 73*5331Samw #endif 74*5331Samw 75*5331Samw #endif /* _SMBD_H */ 76