summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-15 21:45:45 +0000
committerJeremy Allison <jra@samba.org>2004-03-15 21:45:45 +0000
commitce0c99312c7da78679357610730ba5b60f4319b9 (patch)
treeb1b35c4e6bb6ab27e5d945f86fded1b86bc8daff /source3/include/smb.h
parent96c66b7be726b2361f18edde01d7b71e124e33e7 (diff)
downloadsamba-ce0c99312c7da78679357610730ba5b60f4319b9.tar.gz
samba-ce0c99312c7da78679357610730ba5b60f4319b9.tar.bz2
samba-ce0c99312c7da78679357610730ba5b60f4319b9.zip
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to expand to utf8 size on read. Jeremy. (This used to be commit 834d816caf9cd6318da00febde50d9233469dac2)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 500aff997e..6c2f74e3b9 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1505,7 +1505,10 @@ struct cnotify_fns {
#include "smb_macros.h"
#define MAX_NETBIOSNAME_LEN 16
+/* DOS character, NetBIOS namestring. Type used on the wire. */
typedef char nstring[MAX_NETBIOSNAME_LEN];
+/* Unix character, NetBIOS namestring. Type used to manipulate name in nmbd. */
+typedef char unstring[MAX_NETBIOSNAME_LEN*4];
/* A netbios name structure. */
struct nmb_name {