diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-04-19 23:39:27 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-04-19 23:39:27 +0000 |
commit | 88ba07d41b07fd45b2ceb1a3fbcc98d940f6a140 (patch) | |
tree | de9a6dc3262e4aac8bc2d8b26af77a45109d6c3a /packet-dcerpc.h | |
parent | 7961bd2692692617505dcd59a9c2381a02215220 (diff) | |
download | wireshark-88ba07d41b07fd45b2ceb1a3fbcc98d940f6a140.tar.gz wireshark-88ba07d41b07fd45b2ceb1a3fbcc98d940f6a140.tar.bz2 wireshark-88ba07d41b07fd45b2ceb1a3fbcc98d940f6a140.zip |
DCE RPC updates from Todd Sabin.
svn path=/trunk/; revision=3338
Diffstat (limited to 'packet-dcerpc.h')
-rw-r--r-- | packet-dcerpc.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/packet-dcerpc.h b/packet-dcerpc.h new file mode 100644 index 0000000000..2739382aea --- /dev/null +++ b/packet-dcerpc.h @@ -0,0 +1,93 @@ +/* packet-dcerpc.h + * Copyright 2001, Todd Sabin <tas@webspan.net> + * + * $Id: packet-dcerpc.h,v 1.1 2001/04/19 23:39:27 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@zing.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __PACKET_DCERPC_H__ +#define __PACKET_DCERPC_H__ + +typedef struct _e_uuid_t { + guint32 Data1; + guint16 Data2; + guint16 Data3; + guint8 Data4[8]; +} e_uuid_t; + +typedef struct _e_dce_cn_common_hdr_t { + guint8 rpc_ver; + guint8 rpc_ver_minor; + guint8 ptype; + guint8 flags; + guint8 drep[4]; + guint16 frag_len; + guint16 auth_len; + guint32 call_id; +} e_dce_cn_common_hdr_t; + +typedef struct _e_dce_dg_common_hdr_t { + guint8 rpc_ver; + guint8 ptype; + guint8 flags1; + guint8 flags2; + guint8 drep[3]; + guint8 serial_hi; + e_uuid_t obj_id; + e_uuid_t if_id; + e_uuid_t act_id; + guint32 server_boot; + guint32 if_ver; + guint32 seqnum; + guint16 opnum; + guint16 ihint; + guint16 ahint; + guint16 frag_len; + guint16 frag_num; + guint8 auth_proto; + guint8 serial_lo; +} e_dce_dg_common_hdr_t; + + + +#define PDU_REQ 0 +#define PDU_PING 1 +#define PDU_RESP 2 +#define PDU_FAULT 3 +#define PDU_WORKING 4 +#define PDU_NOCALL 5 +#define PDU_REJECT 6 +#define PDU_ACK 7 +#define PDU_FACK 9 +#define PDU_BIND 11 +#define PDU_BIND_ACK 12 +#define PDU_BIND_NAK 13 +#define PDU_ALTER 14 +#define PDU_ALTER_ACK 15 +#define PDU_AUTH3 16 + + +guint16 dcerpc_tvb_get_ntohs (tvbuff_t *tvb, gint offset, char *drep); +guint32 dcerpc_tvb_get_ntohl (tvbuff_t *tvb, gint offset, char *drep); +void dcerpc_tvb_get_uuid (tvbuff_t *tvb, gint offset, char *drep, e_uuid_t *uuid); + + + +#endif /* packet-dcerpc.h */ |