aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-common.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-05-15 02:14:00 +0000
committerTim Potter <tpot@samba.org>2003-05-15 02:14:00 +0000
commitcabe2eebf805c338ca9fc22b694a804fdb6f04ff (patch)
tree0642eec1b02d773077279d0cced0adc15a9b2f9d /packet-smb-common.h
parentf6e347bbc5f43da06ae6765a9b2ac864c8cdf542 (diff)
downloadwireshark-cabe2eebf805c338ca9fc22b694a804fdb6f04ff.tar.gz
wireshark-cabe2eebf805c338ca9fc22b694a804fdb6f04ff.tar.bz2
wireshark-cabe2eebf805c338ca9fc22b694a804fdb6f04ff.zip
More work on dissecting generic and standard mappings for NT access masks.
svn path=/trunk/; revision=7668
Diffstat (limited to 'packet-smb-common.h')
-rw-r--r--packet-smb-common.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/packet-smb-common.h b/packet-smb-common.h
index 48b8f713e1..74e8bdcf65 100644
--- a/packet-smb-common.h
+++ b/packet-smb-common.h
@@ -2,7 +2,7 @@
* Routines for SMB packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb-common.h,v 1.22 2003/05/09 01:41:28 tpot Exp $
+ * $Id: packet-smb-common.h,v 1.23 2003/05/15 02:14:00 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -58,14 +58,36 @@ int dissect_smb_64bit_time(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_d
int dissect_nt_sid(tvbuff_t *tvb, int offset, proto_tree *parent_tree,
char *name, char **sid_str);
-/* Stuff for dissecting NT access masks */
+/*
+ * Stuff for dissecting NT access masks
+ */
typedef void (nt_access_mask_fn_t)(tvbuff_t *tvb, gint offset,
proto_tree *tree, guint32 access);
+/* Map generic access permissions to specific permissions */
+
+struct generic_mapping {
+ guint32 generic_read;
+ guint32 generic_write;
+ guint32 generic_execute;
+ guint32 generic_all;
+};
+
+/* Map standard access permissions to specific permissions */
+
+struct standard_mapping {
+ guint32 std_read;
+ guint32 std_write;
+ guint32 std_execute;
+ guint32 std_all;
+};
+
struct access_mask_info {
char *specific_rights_name;
nt_access_mask_fn_t *specific_rights_fn;
+ struct generic_mapping *generic_mapping;
+ struct standard_mapping *standard_mapping;
};
int