/* packet-smb-common.h
- * Routines for smb packet dissection
+ * Routines for SMB packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-smb-common.h,v 1.6 2002/01/25 08:02:01 guy Exp $
+ * $Id: packet-smb-common.h,v 1.7 2002/01/25 09:42:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
int display_ms_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int hf_index);
+int dissect_smb_64bit_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, char *str, int hf_date);
+
int dissect_nt_sid(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *parent_tree, char *name);
#endif
* Routines for SMB net logon packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet-smb-logon.c,v 1.23 2002/01/25 08:02:01 guy Exp $
+ * $Id: packet-smb-logon.c,v 1.24 2002/01/25 09:42:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
offset += 4;
proto_tree_add_item(info_tree, hf_large_serial, tvb, offset, 8,
- FALSE);
+ TRUE);
offset += 8;
- proto_tree_add_item(info_tree, hf_nt_date_time, tvb, offset, 8,
- FALSE);
- offset += 8;
+ offset = dissect_smb_64bit_time(tvb, pinfo, info_tree, offset,
+ "NT Date/Time", hf_nt_date_time);
info_count--;
}
{ "Database Index", "netlogon.db_index", FT_UINT32, BASE_DEC,
NULL, 0, "NETLOGON Database Index", HFILL }},
- /* XXX - 64-bit integer? */
{ &hf_large_serial,
- { "Large Serial Number", "netlogon.large_serial", FT_BYTES, BASE_NONE,
+ { "Large Serial Number", "netlogon.large_serial", FT_UINT64, BASE_DEC,
NULL, 0, "NETLOGON Large Serial Number", HFILL }},
- /* XXX - 64-bit FILETIME */
{ &hf_nt_date_time,
- { "NT Date/Time", "netlogon.nt_date_time", FT_BYTES, BASE_NONE,
+ { "NT Date/Time", "netlogon.nt_date_time", FT_ABSOLUTE_TIME, BASE_NONE,
NULL, 0, "NETLOGON NT Date/Time", HFILL }},
};
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.198 2002/01/25 08:02:01 guy Exp $
+ * $Id: packet-smb.c,v 1.199 2002/01/25 09:42:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
return offset;
}
-static int
+int
dissect_smb_64bit_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, char *str, int hf_date)
{
proto_item *item = NULL;