aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-ndr.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-01-28 09:29:49 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-01-28 09:29:49 +0000
commit610da77693fcb3d857253e953cb687224249fd74 (patch)
tree219599a66d3ca408ff49b235bb556e1602596f37 /epan/dissectors/packet-dcerpc-ndr.c
parent289fd317a0461cb3ad54b5c680719b62d47a60a0 (diff)
older MS DCE/RPC interfaces often use a construct that is to be treated as a 64 bit integer but in reality is a struct containing 2 32bit integers.
this construct is aligned on 4 byte boundaries in ndr and NOT 8 bytes as a real uint64 (== hyper) would be. rename the existing dissect_ndr_uint64 ro dissect_ndr_duint32 (double uint32) to make it reflect better the alignment of the type. svn path=/trunk/; revision=13184
Diffstat (limited to 'epan/dissectors/packet-dcerpc-ndr.c')
-rw-r--r--epan/dissectors/packet-dcerpc-ndr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dcerpc-ndr.c b/epan/dissectors/packet-dcerpc-ndr.c
index bfa3baad21..23ad96b929 100644
--- a/epan/dissectors/packet-dcerpc-ndr.c
+++ b/epan/dissectors/packet-dcerpc-ndr.c
@@ -101,8 +101,13 @@ dissect_ndr_uint32 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
tree, drep, hfindex, pdata);
}
+/* Double uint32
+ This function dissects the 64bit datatype that is common for
+ ms interfaces and which is 32bit aligned.
+ It is really just 2 uint32's
+*/
int
-dissect_ndr_uint64 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
+dissect_ndr_duint32 (tvbuff_t *tvb, gint offset, packet_info *pinfo,
proto_tree *tree, guint8 *drep,
int hfindex, unsigned char *pdata)
{