diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-03-10 23:13:04 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-03-10 23:13:04 +0000 |
commit | dca833d45ea4ee9cd04b21d8c5e10ce04fa2826d (patch) | |
tree | 6b4029a630fbd533bd0d480eea8d8c06823fd419 /packet-smb.c | |
parent | 77535748eba7b28b1aaa12e63716901442065d67 (diff) |
Absolute and Relative times were swapped. Also add comment that there seems
to be an unknown special time constant : 0x40000000 00000000 that we dont know
yet what it means.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4915 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-smb.c')
-rw-r--r-- | packet-smb.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packet-smb.c b/packet-smb.c index a6772ab59e..c8dd674a33 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -3,7 +3,7 @@ * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * 2001 Rewrite by Ronnie Sahlberg and Guy Harris * - * $Id: packet-smb.c,v 1.214 2002/03/09 02:12:47 guy Exp $ + * $Id: packet-smb.c,v 1.215 2002/03/10 23:13:04 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1162,6 +1162,10 @@ dissect_smb_64bit_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int guint32 filetime_high, filetime_low; nstime_t ts; + /* XXX there seems also to be another special time value which is fairly common : + 0x40000000 00000000 + the meaning of this one is yet unknown + */ if (tree) { filetime_low = tvb_get_letohl(tvb, offset); filetime_high = tvb_get_letohl(tvb, offset + 4); @@ -1171,11 +1175,11 @@ dissect_smb_64bit_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int proto_registrar_get_name(hf_date)); } else if(filetime_low==0 && filetime_high==0x80000000){ proto_tree_add_text(tree, tvb, offset, 8, - "%s: Infinity (absolute time)", + "%s: Infinity (relative time)", proto_registrar_get_name(hf_date)); } else if(filetime_low==0xffffffff && filetime_high==0x7fffffff){ proto_tree_add_text(tree, tvb, offset, 8, - "%s: Infinity (relative time)", + "%s: Infinity (absolute time)", proto_registrar_get_name(hf_date)); } else { if (nt_time_to_nstime(filetime_high, filetime_low, &ts)) { |