Added support for a new DCERPC pipe supported by Windows 2000. It has
[metze/wireshark/wip.git] / packet-dcerpc-lsa-ds.c
1 /* packet-dcerpc-lsa-ds.c
2  * Routines for SMB \PIPE\lsarpc packet disassembly
3  * Copyright 2002, Tim Potter <tpot@samba.org>
4  *
5  * $Id: packet-dcerpc-lsa-ds.c,v 1.1 2002/11/01 00:42:00 tpot Exp $
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29
30 #include <glib.h>
31 #include <string.h>
32
33 #include <epan/packet.h>
34 #include "packet-dcerpc.h"
35 #include "packet-dcerpc-nt.h"
36
37 static int proto_dcerpc_lsa_ds = -1;
38
39 static gint ett_dcerpc_lsa_ds = -1;
40
41 void
42 proto_register_dcerpc_lsa_ds(void)
43 {
44         proto_dcerpc_lsa_ds = proto_register_protocol(
45                 "Microsoft Local Security Architecture (Directory Services)", 
46                 "LSA_DS", "lsa_ds");
47 }
48
49 /* Protocol handoff */
50
51 static e_uuid_t uuid_dcerpc_lsa_ds = {
52         0x3919286a, 0xb10c, 0x11d0,
53         { 0x9b, 0xa8, 0x00, 0xc0, 0x4f, 0xd9, 0x2e, 0xf5}
54 };
55
56 static guint16 ver_dcerpc_lsa_ds = 0;
57
58 static dcerpc_sub_dissector lsa_ds_dissectors[] = {
59     { 0, NULL, NULL, NULL },
60 };
61
62 void
63 proto_reg_handoff_dcerpc_lsa_ds(void)
64 {
65         /* Register protocol as dcerpc */
66
67         dcerpc_init_uuid(proto_dcerpc_lsa_ds, ett_dcerpc_lsa_ds, 
68                          &uuid_dcerpc_lsa_ds, ver_dcerpc_lsa_ds, 
69                          lsa_ds_dissectors, -1);
70 }