* Routines for SMB \PIPE\winreg packet disassembly
* Copyright 2001, 2002 Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc-reg.c,v 1.7 2002/07/05 07:07:34 tpot Exp $
+ * $Id: packet-dcerpc-reg.c,v 1.8 2002/07/05 19:34:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include "packet-dcerpc-nt.h"
#include "packet-dcerpc-reg.h"
#include "smb.h"
+#include "packet-smb-common.h"
/* Global hf index fields */
static int hf_querykey_max_valname_len = -1;
static int hf_querykey_max_valbuf_size = -1;
static int hf_querykey_secdesc = -1;
+static int hf_querykey_modtime = -1;
/* Data that is passed to a open call */
tvb, offset, pinfo, tree, drep,
hf_querykey_secdesc, NULL);
- /* FIXME: do time properly */
-
- proto_tree_add_text(tree, tvb, offset, 8, "Mod time");
- offset += 8;
+ offset = dissect_smb_64bit_time(
+ tvb, tree, offset, hf_querykey_modtime);
offset = dissect_ntstatus(
tvb, offset, pinfo, tree, drep, hf_rc, NULL);
{ "Secdesc", "reg.querykey.secdesc", FT_UINT32, BASE_DEC,
NULL, 0x0, "Secdesc", HFILL }},
+ { &hf_querykey_modtime,
+ { "Mod time", "reg.querykey.modtime", FT_ABSOLUTE_TIME, BASE_NONE,
+ NULL, 0x0, "Secdesc", HFILL }},
+
};
static gint *ett[] = {