summaryrefslogtreecommitdiff
path: root/librpc/ndr/ndr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-17 09:08:47 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-17 21:52:24 -0700
commit90770e45c7136535e93900189bc46ca0570bfae2 (patch)
tree930ed727256163859343a7b494e4bed9a0a9247a /librpc/ndr/ndr.c
parentec422edab59dd823aeaf3c4cdcf47e368c28382d (diff)
downloadsamba-90770e45c7136535e93900189bc46ca0570bfae2.tar.gz
samba-90770e45c7136535e93900189bc46ca0570bfae2.tar.bz2
samba-90770e45c7136535e93900189bc46ca0570bfae2.zip
ndr: added support for NDR64
This adds NDR64 support for the push functions in libndr
Diffstat (limited to 'librpc/ndr/ndr.c')
-rw-r--r--librpc/ndr/ndr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c
index ef318d64d2..d629d852e8 100644
--- a/librpc/ndr/ndr.c
+++ b/librpc/ndr/ndr.c
@@ -355,9 +355,11 @@ _PUBLIC_ void ndr_set_flags(uint32_t *pflags, uint32_t new_flags)
/* the big/little endian flags are inter-dependent */
if (new_flags & LIBNDR_FLAG_LITTLE_ENDIAN) {
(*pflags) &= ~LIBNDR_FLAG_BIGENDIAN;
+ (*pflags) &= ~LIBNDR_FLAG_NDR64;
}
if (new_flags & LIBNDR_FLAG_BIGENDIAN) {
(*pflags) &= ~LIBNDR_FLAG_LITTLE_ENDIAN;
+ (*pflags) &= ~LIBNDR_FLAG_NDR64;
}
if (new_flags & LIBNDR_FLAG_REMAINING) {
(*pflags) &= ~LIBNDR_ALIGN_FLAGS;
@@ -1168,6 +1170,7 @@ const static struct {
{ NDR_ERR_IPV4ADDRESS, "IPv4 Address Error" },
{ NDR_ERR_INVALID_POINTER, "Invalid Pointer" },
{ NDR_ERR_UNREAD_BYTES, "Unread Bytes" },
+ { NDR_ERR_NDR64, "NDR64 assertion error" },
{ 0, NULL }
};