* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.379 2003/12/18 00:18:54 guy Exp $
+ * $Id: packet-smb.c,v 1.385 2004/01/19 20:10:37 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#include <epan/packet.h>
#include <epan/conversation.h>
#include "smb.h"
-#include "alignment.h"
#include <epan/strutil.h>
#include "prefs.h"
#include "reassemble.h"
/*
* Get the time as seconds and nanoseconds.
*/
- tv->secs = d;
- tv->nsecs = (d - tv->secs)*1000000000;
+ tv->secs = (time_t) d;
+ tv->nsecs = (int) ((d - tv->secs)*1000000000);
return TRUE;
}
proto_item *litem = NULL;
proto_tree *ltree = NULL;
if(lt&0x10){
- char buf[8];
+ guint8 buf[8];
guint32 val;
/* large lock format */
proto_item *litem = NULL;
proto_tree *ltree = NULL;
if(lt&0x10){
- char buf[8];
+ guint8 buf[8];
guint32 val;
/* large lock format */
int
dissect_nt_access_mask(tvbuff_t *tvb, gint offset, packet_info *pinfo,
- proto_tree *tree, char *drep, int hfindex,
+ proto_tree *tree, guint8 *drep, int hfindex,
struct access_mask_info *ami)
{
proto_item *item;
static int
dissect_nt_v2_ace(tvbuff_t *tvb, int offset, packet_info *pinfo,
- proto_tree *parent_tree, char *drep,
+ proto_tree *parent_tree, guint8 *drep,
struct access_mask_info *ami)
{
proto_item *item = NULL;
static int
dissect_nt_acl(tvbuff_t *tvb, int offset, packet_info *pinfo,
- proto_tree *parent_tree, char *drep, char *name,
+ proto_tree *parent_tree, guint8 *drep, char *name,
struct access_mask_info *ami)
{
proto_item *item = NULL;
int
dissect_nt_sec_desc(tvbuff_t *tvb, int offset, packet_info *pinfo,
- proto_tree *parent_tree, char *drep, int len,
+ proto_tree *parent_tree, guint8 *drep, int len,
struct access_mask_info *ami)
{
proto_item *item = NULL;
proto_tree_add_item(tree, hf_smb_reserved, tvb, offset, 1, TRUE);
COUNT_BYTES_SUBR(1);
- /* short file name */
+ /* short file name - it's not always in Unicode */
sfn = get_unicode_or_ascii_string(tvb, &offset, si->unicode, &sfn_len, FALSE, TRUE, bcp);
CHECK_STRING_SUBR(sfn);
proto_tree_add_string(tree, hf_smb_short_file_name, tvb, offset, 24,
e_uuid_t fs_id;
char uuid_str[DCERPC_UUID_STR_LEN];
int uuid_str_len;
- char drep = 0x10;
+ guint8 drep = 0x10;
CHECK_BYTE_COUNT_TRANS_SUBR(16);