dnsp.idl: fix the dnsp_dns_addr_array definition
authorStefan Metzmacher <metze@samba.org>
Tue, 30 Apr 2019 12:21:22 +0000 (14:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 8 Aug 2019 07:30:11 +0000 (07:30 +0000)
commitd2087e4b4806940ef398d97133a3842a40951810
tree0a06e9f153782ba4d42507c094f842a0b4f6a653
parente7dfe3f7f77d42991dd32095dced1ac821ddeab0
dnsp.idl: fix the dnsp_dns_addr_array definition

The endian changes are needed in order to get the following result
from the blobs Windows generated (see the torture test):

  AddrArray: ARRAY(3)
      AddrArray: struct dnsp_dns_addr
          family                   : 0x0002 (2)
          port                     : 0x0035 (53)
          ipv4                     : 172.31.99.33
          ipv6                     : 0000:0000:0000:0000:0000:0000:0000:0000

[MS-DNSP] states that the port is supposed to be ignored, but it's still
good to decode it as port '53' (0x0035) instead of '13568' (0x3500).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13969

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
(cherry picked from commit 6fc7cc15048673d109042d7b40684ed63eb4ff9e)
librpc/idl/dnsp.idl
selftest/knownfail.d/dnsp
source4/torture/ndr/dnsp.c