summaryrefslogtreecommitdiff
path: root/smb.h
diff options
context:
space:
mode:
authorguy <guy>2004-12-28 22:29:44 +0000
committerguy <guy>2004-12-28 22:29:44 +0000
commit9ce2222dfe0350ab2535775a14e49139fc033f3d (patch)
tree7a2b01adb3ca046dabe7ad8e11e2be39710e3c70 /smb.h
parent922c8688c12fa46fe7d7061f3be813efa25d9d17 (diff)
downloadtcpdump-9ce2222dfe0350ab2535775a14e49139fc033f3d.tar.gz
Correctly handle Unicode strings - skip padding to put them on a 2-byte
boundary, and base the Unicode-vs-non-Unicode decision on the "strings are Unicode" bit in Flags2, except for those few strings that are always ASCII, rather than doing a heuristic check. Fix the padding in FindFirst2 requests.
Diffstat (limited to 'smb.h')
-rw-r--r--smb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/smb.h b/smb.h
index eb25d14a..8eeb303f 100644
--- a/smb.h
+++ b/smb.h
@@ -1,4 +1,4 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.8 2002-06-11 17:09:00 itojun Exp $ (LBL) */
+/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.9 2004-12-28 22:29:44 guy Exp $ (LBL) */
/*
* Copyright (C) Andrew Tridgell 1995-1999
*
@@ -119,4 +119,4 @@
#define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2)))
/* some protos */
-const u_char *smb_fdata(const u_char *, const char *, const u_char *);
+const u_char *smb_fdata(const u_char *, const char *, const u_char *, int);