diff options
author | tpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-28 01:23:26 +0000 |
---|---|---|
committer | tpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-28 01:23:26 +0000 |
commit | 7153e6a943ff7c591308d9bfdcec87ce7afc880b (patch) | |
tree | 8d0239554ec60dc780acdbd645fee44bb4b6a376 /packet-dcerpc-nt.h | |
parent | 19fe73eab8b278ea7e012c4a4fb928f1281fe3dd (diff) |
Cleaned up NT policy handle hashing a bit. Split the store function
into two - one that stores request/reply frame numbers and another
that associates a text name with a policy handle.
Removed all calls to prs_policy_hnd() and converted to calls to
dissect_nt_policy_hnd().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5772 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dcerpc-nt.h')
-rw-r--r-- | packet-dcerpc-nt.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/packet-dcerpc-nt.h b/packet-dcerpc-nt.h index 81f80bd879..09432e4b6c 100644 --- a/packet-dcerpc-nt.h +++ b/packet-dcerpc-nt.h @@ -2,7 +2,7 @@ * Routines for DCERPC over SMB packet disassembly * Copyright 2001, Tim Potter <tpot@samba.org> * - * $Id: packet-dcerpc-nt.h,v 1.26 2002/06/16 13:47:39 sahlberg Exp $ + * $Id: packet-dcerpc-nt.h,v 1.27 2002/06/28 01:23:26 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -65,9 +65,6 @@ char *fake_unicode(tvbuff_t *tvb, int offset, int len); 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, const guint8 **data); - /* Routines for handling deferral of referants in NDR */ #define PARSE_SCALARS 1 @@ -143,12 +140,22 @@ dissect_ndr_nt_SID_AND_ATTRIBUTES(tvbuff_t *tvb, int offset, * Policy handle hashing */ +/* Store open and close packet numbers for a policy handle */ + +void +dcerpc_smb_store_pol_pkts(e_ctx_hnd *policy_hnd, guint32 open_frame, + guint32 close_frame); + +/* Store a name with a policy handle */ + +void +dcerpc_smb_store_pol_name(e_ctx_hnd *policy_hnd, char *name); + +/* Fetch details stored with a policy handle */ + gboolean -dcerpc_smb_fetch_pol(const guint8 *policy_hnd, char **name, +dcerpc_smb_fetch_pol(e_ctx_hnd *policy_hnd, char **name, guint32 *open_frame, guint32 *close_frame); -void -dcerpc_smb_store_pol(const guint8 *policy_hnd, char *name, - guint32 open_frame, guint32 close_frame); /* Check for unparsed data at the end of a frame */ |