diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-09 23:48:58 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-09 23:48:58 +0000 |
commit | 0cd37c831d79a12a10e479bf4fa89ffe64c1292a (patch) | |
tree | 24a22873ca012678363541218f9581836a2021a3 /source/include/ntdomain.h | |
parent | 1d84da779a0fe3219d77686a493d2b2fa1f8072a (diff) | |
download | samba-0cd37c831d79a12a10e479bf4fa89ffe64c1292a.tar.gz samba-0cd37c831d79a12a10e479bf4fa89ffe64c1292a.tar.xz samba-0cd37c831d79a12a10e479bf4fa89ffe64c1292a.zip |
Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
Diffstat (limited to 'source/include/ntdomain.h')
-rw-r--r-- | source/include/ntdomain.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/include/ntdomain.h b/source/include/ntdomain.h index 7a47f6150e9..0ae48169fbd 100644 --- a/source/include/ntdomain.h +++ b/source/include/ntdomain.h @@ -79,6 +79,11 @@ typedef struct _prs_struct #define MARSHALLING(ps) (!(ps)->io) #define UNMARSHALLING(ps) ((ps)->io) +#define RPC_BIG_ENDIAN 1 +#define RPC_LITTLE_ENDIAN 0 + +#define RPC_PARSE_ALIGN 4 + typedef struct _output_data { /* * Raw RPC output data. This does not include RPC headers or footers. @@ -196,6 +201,12 @@ typedef struct pipes_struct BOOL fault_state; /* + * Set to RPC_BIG_ENDIAN when dealing with big-endian PDU's + */ + + BOOL endian; + + /* * Struct to deal with multiple pdu inputs. */ |