summaryrefslogtreecommitdiff
path: root/librpc/idl/idl_types.h
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2016-05-17 12:30:46 +0200
committerGarming Sam <garming@samba.org>2016-06-16 00:06:27 +0200
commitdf079962ef708de96e54ded13da04b6e12ac00d0 (patch)
treecff0e79ee747a1a555837e19b7c5a40aac2c42e5 /librpc/idl/idl_types.h
parent234a470f198f8f09f46aaeaf58f966faccedef18 (diff)
downloadsamba-df079962ef708de96e54ded13da04b6e12ac00d0.tar.gz
librpc/ndr: add flag LIBNDR_FLAG_NO_COMPRESSION
This flag can be used to change marshalling behaviour with regard to compression. Example: DNS packets make use of so called DNS name compression which means that for identical strings in a DNS packet, the second string is replaced with a reference (an offset) to the first. Setting this flag requests to turns off the marshalling compression. This will be used in the next commit to prevent name compression in DNS TSIG records. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11520 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'librpc/idl/idl_types.h')
-rw-r--r--librpc/idl/idl_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/librpc/idl/idl_types.h b/librpc/idl/idl_types.h
index 838c2192515..72a5d857852 100644
--- a/librpc/idl/idl_types.h
+++ b/librpc/idl/idl_types.h
@@ -40,6 +40,7 @@
#define NDR_ALIGN2 LIBNDR_FLAG_ALIGN2
#define NDR_ALIGN4 LIBNDR_FLAG_ALIGN4
#define NDR_ALIGN8 LIBNDR_FLAG_ALIGN8
+#define NDR_NO_COMP LIBNDR_FLAG_NO_COMPRESSION
/* this flag is used to force a section of IDL as little endian. It is
needed for the epmapper IDL, which is defined as always being LE */