diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-26 06:13:08 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-09-26 06:13:08 +0000 |
commit | 9d8db38353acde2872c63f865e94d4137b2c86b7 (patch) | |
tree | 941b37bd99483c0d4bfb41c3c300f352823621b5 /packet-dcerpc-ndr.c | |
parent | ff72e67571002e6cbbaa9be87d947028b6436151 (diff) |
From Jaime Fournier: updates to dcerpc conversation manager
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6339 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dcerpc-ndr.c')
-rw-r--r-- | packet-dcerpc-ndr.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/packet-dcerpc-ndr.c b/packet-dcerpc-ndr.c index 80bb38031f..e262c39589 100644 --- a/packet-dcerpc-ndr.c +++ b/packet-dcerpc-ndr.c @@ -2,7 +2,7 @@ * Routines for DCERPC NDR dissection * Copyright 2001, Todd Sabin <tas@webspan.net> * - * $Id: packet-dcerpc-ndr.c,v 1.9 2002/09/03 08:39:16 sahlberg Exp $ + * $Id: packet-dcerpc-ndr.c,v 1.10 2002/09/26 06:13:07 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -165,6 +165,27 @@ dissect_ndr_double(tvbuff_t *tvb, gint offset, packet_info *pinfo, tree, drep, hfindex, pdata); } +/* handles unix 32 bit time_t */ +int +dissect_ndr_time_t (tvbuff_t *tvb, gint offset, packet_info *pinfo, + proto_tree *tree, char *drep, + int hfindex, guint32 *pdata) +{ + dcerpc_info *di; + + di=pinfo->private_data; + if(di->conformant_run){ + /* just a run to handle conformant arrays, no scalars to dissect */ + return offset; + } + + + if (offset % 4) { + offset += 4 - (offset % 4); + } + return dissect_dcerpc_time_t (tvb, offset, pinfo, + tree, drep, hfindex, pdata); +} int dissect_ndr_uuid_t (tvbuff_t *tvb, gint offset, packet_info *pinfo, |