librpc/ndr: add flag LIBNDR_FLAG_NO_COMPRESSION
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2016 10:30:46 +0000 (12:30 +0200)
committerGarming Sam <garming@samba.org>
Wed, 15 Jun 2016 22:06:27 +0000 (00:06 +0200)
commitdf079962ef708de96e54ded13da04b6e12ac00d0
treecff0e79ee747a1a555837e19b7c5a40aac2c42e5
parent234a470f198f8f09f46aaeaf58f966faccedef18
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>
librpc/idl/idl_types.h
librpc/ndr/libndr.h
librpc/ndr/ndr_dns.c