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)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jun 2019 08:49:19 +0000 (08:49 +0000)
commit6fc7cc15048673d109042d7b40684ed63eb4ff9e
treed1b682b719bf07f5a2ce5ff313c0e3acc448c6cd
parent6d958af0b4cb6fd45cfda0298243859b3b043c6f
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>
librpc/idl/dnsp.idl
selftest/knownfail.d/dnsp
source4/torture/ndr/dnsp.c