aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-nt.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-08-21 21:29:22 +0000
committerTim Potter <tpot@samba.org>2002-08-21 21:29:22 +0000
commitde6ea2753576f127a403cb6a49404eba128a781f (patch)
tree6b2f9c8cd495aae54d0bff3cc36f9f1f11720c67 /packet-dcerpc-nt.h
parent60e4ca9c4f376ab67f78cbfe6e3ae903d5b2b144 (diff)
Added a NT access mask dissector. The breaks the permission bits up into
generic, standard and specific mode bits. A protocol dissector can pass in it's own function for dissecting the specific mode bits, if known. svn path=/trunk/; revision=6053
Diffstat (limited to 'packet-dcerpc-nt.h')
-rw-r--r--packet-dcerpc-nt.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/packet-dcerpc-nt.h b/packet-dcerpc-nt.h
index 09432e4b6c..9d2a85e798 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.27 2002/06/28 01:23:26 tpot Exp $
+ * $Id: packet-dcerpc-nt.h,v 1.28 2002/08/21 21:29:22 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -209,4 +209,14 @@ int dissect_ndr_uint16s(tvbuff_t *tvb, gint offset, packet_info *pinfo,
proto_tree *tree, char *drep,
int hfindex, int length, guint16 **pdata);
+/* Dissect an NT access mask */
+
+typedef int (nt_access_mask_fn_t)(tvbuff_t *tvb, gint offset,
+ proto_tree *tree, guint32 access);
+
+int
+dissect_nt_access_mask(tvbuff_t *tvb, gint offset, packet_info *pinfo,
+ proto_tree *tree, char *drep, int hfindex,
+ nt_access_mask_fn_t *specific_rights_fn);
+
#endif /* packet-dcerpc-nt.h */