aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-04-23 23:31:52 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-04-23 23:31:52 +0000
commit7836c1f62e022def5ef98aa711cca0f6d3ee71d8 (patch)
treec15e1530a43722e4e0ed5ec2651493cde0d03580 /packet-dcerpc.c
parent51299a56a38878383c98f1a6a650ae353e08fba5 (diff)
update to netlogon to dissect the timestamps in VALIDATION_UAS_INFO
update to dcerpc time_t dissector to print the string "No time specified" when the seconds field is 0xffffffff svn path=/trunk/; revision=10678
Diffstat (limited to 'packet-dcerpc.c')
-rw-r--r--packet-dcerpc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/packet-dcerpc.c b/packet-dcerpc.c
index cfd32fd4e3..769eccd9ec 100644
--- a/packet-dcerpc.c
+++ b/packet-dcerpc.c
@@ -3,7 +3,7 @@
* Copyright 2001, Todd Sabin <tas@webspan.net>
* Copyright 2003, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc.c,v 1.164 2004/03/05 23:09:32 sahlberg Exp $
+ * $Id: packet-dcerpc.c,v 1.165 2004/04/23 23:31:52 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -912,7 +912,12 @@ dissect_dcerpc_time_t (tvbuff_t *tvb, gint offset, packet_info *pinfo _U_,
tv.secs=data;
tv.nsecs=0;
if (tree) {
- proto_tree_add_time (tree, hfindex, tvb, offset, 4, &tv);
+ if(data==0xffffffff){
+ /* special case, no time specified */
+ proto_tree_add_time_format(tree, hfindex, tvb, offset, 4, &tv, "%s: No time specified", proto_registrar_get_nth(hfindex)->name);
+ } else {
+ proto_tree_add_time (tree, hfindex, tvb, offset, 4, &tv);
+ }
}
if (pdata)
*pdata = data;