aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-lsa.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-28 04:44:54 +0000
committerTim Potter <tpot@samba.org>2003-04-28 04:44:54 +0000
commite3dabb27e219eee566d788c624a99580d479a629 (patch)
treec472ec9155ea8ddd44a0d8c3193780d045794bba /packet-dcerpc-lsa.c
parentb2f936ff24129c4f40b62f2a4a5410a24ad45ab4 (diff)
downloadwireshark-e3dabb27e219eee566d788c624a99580d479a629.tar.gz
wireshark-e3dabb27e219eee566d788c624a99580d479a629.tar.bz2
wireshark-e3dabb27e219eee566d788c624a99580d479a629.zip
Move the specific rights dissection function and name into a structure
instead of passing them around as separate parameters. This is a prelude to adding generic and standard mapping to the access mask dissection. svn path=/trunk/; revision=7591
Diffstat (limited to 'packet-dcerpc-lsa.c')
-rw-r--r--packet-dcerpc-lsa.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/packet-dcerpc-lsa.c b/packet-dcerpc-lsa.c
index 29beac142f..86ca58754d 100644
--- a/packet-dcerpc-lsa.c
+++ b/packet-dcerpc-lsa.c
@@ -3,7 +3,7 @@
* Copyright 2001,2003 Tim Potter <tpot@samba.org>
* 2002 Added LSA command dissectors Ronnie Sahlberg
*
- * $Id: packet-dcerpc-lsa.c,v 1.75 2003/04/27 04:33:10 tpot Exp $
+ * $Id: packet-dcerpc-lsa.c,v 1.76 2003/04/28 04:44:53 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -346,6 +346,11 @@ lsa_specific_rights(tvbuff_t *tvb, gint offset, proto_tree *tree,
tree, hf_view_local_info, tvb, offset, 4, access);
}
+struct access_mask_info lsa_access_mask_info = {
+ "LSA", /* Name of specific rights */
+ lsa_specific_rights /* Dissection function */
+};
+
int
lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
@@ -364,8 +369,7 @@ lsa_dissect_LSA_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
hf_lsa_sd_size, &len);
dissect_nt_sec_desc(
- tvb, offset, pinfo, tree, drep, len, lsa_specific_rights,
- "LSA");
+ tvb, offset, pinfo, tree, drep, len, &lsa_access_mask_info);
offset += len;
@@ -445,7 +449,7 @@ lsa_dissect_ACCESS_MASK(tvbuff_t *tvb, int offset,
{
offset = dissect_nt_access_mask(
tvb, offset, pinfo, tree, drep, hf_lsa_access_mask,
- lsa_specific_rights, "LSA");
+ &lsa_access_mask_info);
return offset;
}