xref: /illumos-gate/usr/src/uts/common/smbsrv/mailslot.h (revision 9164a50bf932130cbb5097a16f6986873ce0e6e5)
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 (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef _SMBSRV_MAILSLOT_H
27 #define	_SMBSRV_MAILSLOT_H
28 
29 /*
30  * Mailslots are a one-way, unreliable IPC mechanism that allows a
31  * client to send or broadcast messages to a server. The names follow
32  * the same universal naming convention (UNC) used with named pipes:
33  * \\server\mailslot\name, \\.\mailslot\name etc. There is a good
34  * overview of mailslots, including limitations of NT and Windows 2000,
35  * in Network Programming for Microsoft Windows Chapter 3.
36  *
37  * Network Programming for Microsoft Windows
38  * Anthony Jones and Jim Ohlund
39  * Microsoft Press, ISBN 0-7356-0560-2
40  *
41  * This file defines pre-defined and system common mailslots.
42  */
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 /*
49  * Well-known or pre-defined mailslots.
50  */
51 #define	MAILSLOT_LANMAN			"\\MAILSLOT\\LANMAN"
52 #define	MAILSLOT_MSBROWSE		"\\MAILSLOT\\MSBROWSE"
53 #define	MAILSLOT_BROWSE			"\\MAILSLOT\\BROWSE"
54 #define	MAILSLOT_NETLOGON		"\\MAILSLOT\\NET\\NETLOGON"
55 #define	MAILSLOT_NTLOGON		"\\MAILSLOT\\NET\\NTLOGON"
56 
57 
58 /*
59  * System common mailslots. These should be dynamically assigned
60  * at runtime but we don't support a full mailslot implementation
61  * so we use a set of predefined values that appear to work.
62  */
63 #define	MAILSLOT_NETLOGON_RDC		"\\MAILSLOT\\NET\\GETDC354"
64 #define	MAILSLOT_NETLOGON_MDC		"\\MAILSLOT\\NET\\GETDC576"
65 #define	MAILSLOT_NETLOGON_SAMLOGON_RDC	"\\MAILSLOT\\NET\\GETDC873"
66 #define	MAILSLOT_NETLOGON_SAMLOGON_MDC	"\\MAILSLOT\\NET\\GETDC875"
67 
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 
74 #endif /* _SMBSRV_MAILSLOT_H */
75