Merge commit 'b1e7e97d3b60469b243b3b2e22c7d8cbd11c7c90'
[unleashed.git] / usr / src / cmd / listen / lsparam.h
blobc78267e4effeb0ac39cd8372756d89b5eff62de6
1 /*
2 * CDDL HEADER START
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.
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
26 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11.2.1 */
29 * lsparam.h: listener parameters. Includes default pathnames.
32 #include <stdarg.h>
34 /* DEBUGMODE causes debug statements to be compiled in. */
36 /* #define DEBUGMODE */
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
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
52 #ifdef DEBUGMODE
53 #define CHARADDR
54 #endif
56 /* listener parameters */
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 */
68 * LOGMAX is default no of entries maintained
71 #define LOGMAX 1000 /* default value for Logmax */
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.
78 #define SMBSERVER 1 /* undef to remove SMBSERVICE support*/
81 * if listener (or child) dies, dump core for diagnostic purposes
84 /* #define COREDUMP */
86 /* the following filenames are used in homedir: */
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 */
97 /* defines for SAC compatibility */
99 #define SACPIPE "../_sacpipe" /* outgoing messages to SAC */
100 #define PMPIPE "./_pmpipe" /* incoming messages from SAC */
101 #define MAXCLASS 1 /* maximum SAC protocol version */
105 * defaults which are normally overriden by cmd line/passwd file, etc
108 #define NETSPEC "starlan"