librpc/ndr: add flag LIBNDR_FLAG_NO_COMPRESSION
commitd4cf68c5ae780fad51696d12dfd9d7546cc42f03
authorRalph Boehme <slow@samba.org>
Tue, 17 May 2016 10:30:46 +0000 (17 12:30 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Jun 2016 10:10:21 +0000 (23 12:10 +0200)
tree750df7599a465cedb3bd1cf6fa82dfd020545722
parentddcf7b7a079bdd809766bce0bcd26e06803ff9f3
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>
(cherry picked from commit df079962ef708de96e54ded13da04b6e12ac00d0)
librpc/idl/idl_types.h
librpc/ndr/libndr.h
librpc/ndr/ndr_dns.c