xref: /titanic_52/usr/src/cmd/listen/lsparam.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 #ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.11.2.1	*/
27 
28 /*
29  * lsparam.h:	listener parameters.  Includes default pathnames.
30  */
31 
32 #include <stdarg.h>
33 
34 /* DEBUGMODE causes debug statements to be compiled in. */
35 
36 /*  #define DEBUGMODE   */
37 
38 #ifdef	DEBUGMODE
39 extern	int debug(int level, char *format, ...);
40 #define	DEBUG(ARGS)	debug ARGS
41 #else
42 #define	DEBUG(ARGS)
43 #endif
44 
45 /*
46  * CHARADDR is a debug aid only!!!!
47  * with DEBUGMODE, if CHARADDR is defined, logical addresses which
48  * are represented by printable characters, will be displayed in the
49  * debug/log files
50  */
51 
52 #ifdef	DEBUGMODE
53 #define CHARADDR
54 #endif
55 
56 /* listener parameters							*/
57 
58 #define MAXNAMESZ	15		/* must coexist with ms-net (5c) */
59 #define SNNMBUFSZ	16		/* starlan network only		*/
60 #define NAMEBUFSZ	64
61 #define MINMSGSZ	(SMBIDSZ+2)	/* smallest acceptable msg size	*/
62 #define RCVBUFSZ	BUFSIZ		/* receive buffer size		*/
63 #define DBFLINESZ	BUFSIZ		/* max line size in data base 	*/
64 #define ALARMTIME	45		/* seconds to wait for t_rcv	*/
65 #define PATHSIZE	64		/* max size of pathnames	*/
66 
67 /*
68  * LOGMAX is default no of entries maintained
69  */
70 
71 #define LOGMAX	1000			/* default value for Logmax	*/
72 
73 /*
74  * if SMB server is defined, code is included to parse MS-NET messages
75  * if undef'ed, the parsing routine logs an approp. error and returns an err.
76  */
77 
78 #define	SMBSERVER	1		/* undef to remove SMBSERVICE support*/
79 
80 /*
81  * if listener (or child) dies, dump core for diagnostic purposes
82  */
83 
84 /* #define COREDUMP */
85 
86 /* the following filenames are used in homedir:	*/
87 
88 #define BASEDIR	"/etc/saf"		/* base directory for listen	*/
89 #define ALTDIR "/var/saf"		/* alternate directory for files*/
90 #define	LOGNAME	"./log"			/* listener's logfile		*/
91 #define	OLOGNAME "./o.log"		/* listener's saved logfile	*/
92 #define	PDEBUGNAME "p_debug"		/* protoserver's debugfile	*/
93 #define DBGNAME	"debug"			/* debug output file		*/
94 #define PIDNAME	"./_pid"		/* listener's process id's	*/
95 #define DBFNAME	"./_pmtab"		/* listener data base file	*/
96 
97 /* defines for SAC compatibility */
98 
99 #define	SACPIPE	"../_sacpipe"		/* outgoing messages to SAC	*/
100 #define	PMPIPE	"./_pmpipe"		/* incoming messages from SAC	*/
101 #define MAXCLASS	1		/* maximum SAC protocol version */
102 
103 
104 /*
105  * defaults which are normally overriden by cmd line/passwd file, etc
106  */
107 
108 #define NETSPEC	"starlan"
109