From Graeme Hewson:
[obnox/wireshark/wip.git] / packet-dcerpc-dcom.h
1 /* packet-dcerpc-dcom.h
2  *
3  * $Id: packet-dcerpc-dcom.h,v 1.2 2003/11/09 19:53:11 guy Exp $
4  *
5  * Ethereal - Network traffic analyzer
6  * By Gerald Combs <gerald@ethereal.com>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef __PACKET_DCERPC_DCOM_H__
25 #define __PACKET_DCERPC_DCOM_H__
26
27 typedef struct tagCOMVERSION
28     {
29         guint16 MajorVersion;
30         guint16 MinorVersion;
31     } COMVERSION;
32
33 typedef struct tagORPC_EXTENT
34     {
35         e_uuid_t id;
36         guint32 size;
37 /*        guint8 data[];  */
38     } ORPC_EXTENT;
39
40 typedef struct tagORPC_EXTENT_ARRAY
41     {
42         guint32 size;
43         guint32 reserved;
44         ORPC_EXTENT **extent;
45     } ORPC_EXTENT_ARRAY;
46
47 typedef struct tagORPCTHIS {
48     COMVERSION version;
49     guint32 flags;
50     guint32 reserved1;
51     e_uuid_t  cid;
52     ORPC_EXTENT_ARRAY *extensions;
53  } ORPCTHIS;
54
55 typedef struct tagMInterfacePointer {
56     guint32 ulCntData;
57 /*  guint8 abData[];  */
58  } MInterfacePointer,  *PMInterfacePointer;
59
60 typedef struct tagORPCTHAT {
61     guint32 flags;
62     ORPC_EXTENT_ARRAY *extensions;
63  } ORPCTHAT;
64
65 typedef struct tagSTRINGBINDING {
66     unsigned short wTowerId;     /* Cannot be zero. */
67     unsigned short aNetworkAddr; /* Zero terminated. */
68  } STRINGBINDING;
69
70 typedef struct tagSECURITYBINDING {
71     unsigned short wAuthnSvc;  /* Cannot be zero. */
72     unsigned short wAuthzSvc;  /* Must not be zero. */
73     unsigned short aPrincName; /* Zero terminated. */
74  }  SECURITYBINDING;
75
76 typedef struct tagDUALSTRINGARRAY {
77     unsigned short wNumEntries;     /* Number of entries in array. */
78     unsigned short wSecurityOffset; /* Offset of security info. */
79 /*  [size_is(wNumEntries)] unsigned short aStringArray[]; */
80     } DUALSTRINGARRAY;
81
82 #endif /* packet-dcerpc-dcom.h */