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 /*
23 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 /*
27 * Message Service
28 */
29
30 #include <syslog.h>
31 #include <stdlib.h>
32
33 #include <smbsrv/libsmb.h>
34 #include <smbsrv/libmlrpc.h>
35 #include <smbsrv/libmlsvc.h>
36 #include <smbsrv/ndl/msgsvc.ndl>
37 #include <smbsrv/smbinfo.h>
38 #include <smbsrv/nmpipes.h>
39
40 static int msgsvcsend_NetrSendMessage(void *, ndr_xa_t *);
41
42 static ndr_stub_table_t msgsvcsend_stub_table[] = {
43 { msgsvcsend_NetrSendMessage, MSGSVCSEND_OPNUM_NetrSendMessage },
44 {0}
45 };
46
47 static ndr_service_t msgsvcsend_service = {
48 "MSGSVC", /* name */
49 "Message Service", /* desc */
50 "\\msgsvc", /* endpoint */
51 PIPE_NTSVCS, /* sec_addr_port */
52 "5a7b91f8-ff00-11d0-a9b200c04fb6e6fc", 0, /* abstract */
53 NDR_TRANSFER_SYNTAX_UUID, 2, /* transfer */
54 0, /* no bind_instance_size */
|
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 /*
23 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
25 */
26
27 /*
28 * Message Service
29 */
30
31 #include <syslog.h>
32 #include <stdlib.h>
33
34 #include <libmlrpc/libmlrpc.h>
35 #include <smbsrv/libsmb.h>
36 #include <smbsrv/libmlsvc.h>
37 #include <smbsrv/ndl/msgsvc.ndl>
38 #include <smbsrv/smbinfo.h>
39 #include <smbsrv/nmpipes.h>
40
41 static int msgsvcsend_NetrSendMessage(void *, ndr_xa_t *);
42
43 static ndr_stub_table_t msgsvcsend_stub_table[] = {
44 { msgsvcsend_NetrSendMessage, MSGSVCSEND_OPNUM_NetrSendMessage },
45 {0}
46 };
47
48 static ndr_service_t msgsvcsend_service = {
49 "MSGSVC", /* name */
50 "Message Service", /* desc */
51 "\\msgsvc", /* endpoint */
52 PIPE_NTSVCS, /* sec_addr_port */
53 "5a7b91f8-ff00-11d0-a9b200c04fb6e6fc", 0, /* abstract */
54 NDR_TRANSFER_SYNTAX_UUID, 2, /* transfer */
55 0, /* no bind_instance_size */
|