2 * Copyright 2001, Todd Sabin <tas@webspan.net>
4 * $Id: packet-dcerpc.h,v 1.2 2001/07/11 01:25:45 guy Exp $
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 #ifndef __PACKET_DCERPC_H__
26 #define __PACKET_DCERPC_H__
28 typedef struct _e_uuid_t {
35 typedef struct _e_dce_cn_common_hdr_t {
44 } e_dce_cn_common_hdr_t;
46 typedef struct _e_dce_dg_common_hdr_t {
66 } e_dce_dg_common_hdr_t;
80 #define PDU_BIND_ACK 12
81 #define PDU_BIND_NAK 13
83 #define PDU_ALTER_ACK 15
87 guint16 dcerpc_tvb_get_ntohs (tvbuff_t *tvb, gint offset, char *drep);
88 guint32 dcerpc_tvb_get_ntohl (tvbuff_t *tvb, gint offset, char *drep);
89 void dcerpc_tvb_get_uuid (tvbuff_t *tvb, gint offset, char *drep, e_uuid_t *uuid);
91 typedef int (dcerpc_dissect_fnct_t)(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree);
93 typedef struct _dcerpc_sub_dissector {
96 dcerpc_dissect_fnct_t *dissect_rqst;
97 dcerpc_dissect_fnct_t *dissect_resp;
98 } dcerpc_sub_dissector;
100 /* registration function for subdissectors */
101 void dcerpc_init_uuid (int proto, int ett, e_uuid_t *uuid, guint16 ver, dcerpc_sub_dissector *procs);
104 #endif /* packet-dcerpc.h */