summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-15 21:53:59 +0000
committerJeremy Allison <jra@samba.org>2004-03-15 21:53:59 +0000
commit8613940ce69c488dc19fb0c3e434f8801511ec2d (patch)
tree94b9fb4a15f3a5931465e19e13179ba3c75db923 /source3/include/smb.h
parentb5805b04da06fe37db70ebba4bfa33d3c3f6a9cb (diff)
downloadsamba-8613940ce69c488dc19fb0c3e434f8801511ec2d.tar.gz
samba-8613940ce69c488dc19fb0c3e434f8801511ec2d.tar.bz2
samba-8613940ce69c488dc19fb0c3e434f8801511ec2d.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 b9da3e941d4233c2d3931f32767f3e51b214033e)
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 835066e263..7a1e8f87ba 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1509,7 +1509,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 {