summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-04 16:51:43 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-04 16:51:43 +0000
commit07cc8fd8e8edd58110800f3b6b7aaec94687b579 (patch)
tree3a84c01129db95ba31803aebf9552840df5248fa /source3/include/smb.h
parenta193401384a0e861c1857d256963c9178644c301 (diff)
downloadsamba-07cc8fd8e8edd58110800f3b6b7aaec94687b579.tar.gz
samba-07cc8fd8e8edd58110800f3b6b7aaec94687b579.tar.bz2
samba-07cc8fd8e8edd58110800f3b6b7aaec94687b579.zip
proto.h:
- recreated, as usual. smb.h: - added RPC_HDR structure - the 18 byte MSRPC header smbparse.c: - added smb_io_rpc_hdr() function to read/write the RPC_HDR structure. util.c: - added align2, align4, align_offset functions. - added skip_unicode_string, unistrcpy, unistrncpy functions. - modified unistrcpy and unistrncpy to return the number of unicode characters returned, effectively making skip_unicode_string redundant. (This used to be commit b0ad811cda3dcffed5b24104229813cdb17b014f)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 37474436ca..b999c13667 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -80,6 +80,10 @@ typedef short int16;
typedef int int32;
#endif
+#ifndef uint8
+typedef unsigned char uint8;
+#endif
+
#ifndef uint16
typedef unsigned short uint16;
#endif
@@ -416,7 +420,7 @@ typedef struct gid_info
} DOM_GID;
-/* RPC_HEADER - ms rpc header */
+/* RPC_HDR - ms rpc header */
typedef struct rpc_hdr_info
{
uint8 major; /* 5 - RPC major version */
@@ -431,7 +435,7 @@ typedef struct rpc_hdr_info
uint16 context_id; /* 0 - presentation context identifier */
uint8 cancel_count; /* 0 - cancel count */
uint8 reserved; /* 0 - reserved */
-} RPC_HEADER;
+} RPC_HDR;
struct smb_passwd {