diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-03-10 23:24:48 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2002-03-10 23:24:48 +0000 |
commit | 853654f2f3382d311f6b8290c42f7dbd683e7488 (patch) | |
tree | 1e8850924a6c3111eb81057b829a40ec4fb5d212 /packet-dcerpc-samr.c | |
parent | 37dd5f340ccfc409b97a61a2808ccf7ff8922641 (diff) |
Moved dissect_ndr_nt_NTTIME() from packet-dcerpc-samr.c to packet-dcerpc-nt.c
since this function will be used by other NT services as well such as NETLOGON.
svn path=/trunk/; revision=4918
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r-- | packet-dcerpc-samr.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c index a82c2ffd84..e789acd05a 100644 --- a/packet-dcerpc-samr.c +++ b/packet-dcerpc-samr.c @@ -3,7 +3,7 @@ * Copyright 2001, Tim Potter <tpot@samba.org> * 2002 Added all command dissectors Ronnie Sahlberg * - * $Id: packet-dcerpc-samr.c,v 1.20 2002/03/10 22:04:25 guy Exp $ + * $Id: packet-dcerpc-samr.c,v 1.21 2002/03/10 23:24:48 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -273,33 +273,6 @@ dissect_ndr_nt_STRING (tvbuff_t *tvb, int offset, return offset; } -/* This should get fixed both here and in dissect_smb_64bit_time so - one can handle both BIG and LITTLE endian encodings - */ -int dissect_smb_64bit_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int offset, int hf_date); -int -dissect_ndr_nt_NTTIME (tvbuff_t *tvb, int offset, - packet_info *pinfo, proto_tree *tree, - char *drep, int hf_index) -{ - dcerpc_info *di; - - di=pinfo->private_data; - if(di->conformant_run){ - /*just a run to handle conformant arrays, nothing to dissect */ - return offset; - } - - /* align to 4 byte boundary */ - if(offset&0x03){ - offset = (offset&0xfffffffc)+4; - } - - offset = dissect_smb_64bit_time(tvb, pinfo, tree, offset, - hf_index); - return offset; -} - static int samr_dissect_SID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, |