summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-04-30 14:21:22 +0200
committerKarolin Seeger <kseeger@samba.org>2019-08-08 07:32:21 +0000
commit8ce25bdb054cad26c401ce6173a88aadc35a99df (patch)
tree1ae2695c99713481fc661f6ef32a84a59dec6adc /librpc
parentb59569126d9faca34beda91809af1d8429a55e6b (diff)
downloadsamba-8ce25bdb054cad26c401ce6173a88aadc35a99df.tar.gz
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)
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/dnsp.idl5
1 files changed, 3 insertions, 2 deletions
diff --git a/librpc/idl/dnsp.idl b/librpc/idl/dnsp.idl
index 578cb27d4d1..0f71aaa292f 100644
--- a/librpc/idl/dnsp.idl
+++ b/librpc/idl/dnsp.idl
@@ -174,8 +174,8 @@ interface dnsp
typedef struct {
uint16 family;
- uint16 port;
- ipv4address ipv4;
+ [flag(NDR_BIG_ENDIAN)] uint16 port;
+ [flag(NDR_BIG_ENDIAN)] ipv4address ipv4;
ipv6address ipv6;
uint8 pad[8];
uint32 unused[8];
@@ -187,6 +187,7 @@ interface dnsp
uint32 Tag;
uint16 Family;
uint16 Reserved0;
+ uint32 Flags;
uint32 MatchFlag;
uint32 Reserved1;
uint32 Reserved2;