aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-common.h
diff options
context:
space:
mode:
authortpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-07 06:01:49 +0000
committertpot <tpot@f5534014-38df-0310-8fa8-9805f1628bb7>2003-02-07 06:01:49 +0000
commiteb01bc9885478730ae00460db66f65a59ce21adb (patch)
tree20ccb6e2d6887b99de3fb09ba0d2eb5d117e0fe3 /packet-smb-common.h
parent4703a831478d851f623583038d8edcc1cf905f03 (diff)
Move dissect_nt_access_mask() from packet-dcerpc-nt.c to packet-smb.c
Give dissect_nt_sec_desc() and dissect_nt_access_mask() a specific rights function parameter for dissecting specific access rights. Fix callers in packet-smb.c to use the new interface. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7086 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-smb-common.h')
-rw-r--r--packet-smb-common.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/packet-smb-common.h b/packet-smb-common.h
index c358acdd45..959a536daf 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.16 2003/01/31 04:11:25 tpot Exp $
+ * $Id: packet-smb-common.h,v 1.17 2003/02/07 06:01:49 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -58,8 +58,18 @@ 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);
+typedef void (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);
+
int
-dissect_nt_sec_desc(tvbuff_t *tvb, int offset, proto_tree *parent_tree, int len);
+dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo,
+ proto_tree *parent_tree, char *drep, int len,
+ nt_access_mask_fn_t *specific_rights_fn);
extern const value_string share_type_vals[];