From da82313eb3378fc8a179cb7abfebd0ba141daae6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 16 Dec 2001 20:17:10 +0000 Subject: From Tim Potter: dissect some of the LSA RPCs stub data. svn path=/trunk/; revision=4407 --- packet-dcerpc-nt.h | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 packet-dcerpc-nt.h (limited to 'packet-dcerpc-nt.h') diff --git a/packet-dcerpc-nt.h b/packet-dcerpc-nt.h new file mode 100644 index 0000000000..be3a813e07 --- /dev/null +++ b/packet-dcerpc-nt.h @@ -0,0 +1,74 @@ +/* packet-dcerpc-nt.h + * Routines for DCERPC over SMB packet disassembly + * Copyright 2001, Tim Potter + * + * $Id: packet-dcerpc-nt.h,v 1.1 2001/12/16 20:17:10 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs + * 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_NT_H +#define __PACKET_DCEPRC_NT_H + +/* Routines for parsing simple types */ + +int prs_align(int offset, int n); + +int prs_uint8(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, guint8 *data, char *name); + +int prs_uint8s(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, int count, guint8 **data, char *name); + +int prs_uint16(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, guint16 *data, char *name); + +int prs_uint16s(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, int count, guint16 **data, char *name); + +int prs_uint32(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, guint32 *data, char *name); + +int prs_uint32s(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, int count, guint32 **data, char *name); + +/* Parse NT status code */ + +int prs_ntstatus(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree); + +/* Parse some common RPC structures */ + +int prs_UNISTR2(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, int flags, char **data, char *name); + +int prs_policy_hnd(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree); + +/* Routines for handling deferral of referants in NDR */ + +#define PARSE_SCALARS 1 +#define PARSE_BUFFERS 2 + +int prs_push_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, + proto_tree *tree, GList **ptr_list, char *name); + +guint32 prs_pop_ptr(GList **ptr_list, char *name); + +#endif /* packet-dcerpc-nt.h */ -- cgit v1.2.3