From 60d9b40ba4fec876b7288bd51340d6b302af00e3 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 4 Feb 2005 01:32:19 +0000 Subject: r5209: Fix the endpoint mapper to work with IPX endpoints (which accidently have the same protocol id as UUID's) Before this, Samba would give NDR errors when contacting a remote server that has IPX support enabled. This one was on my long due bugs list. (This used to be commit 7b847de64f35b8e897b64ad047d8aea3813214f8) --- source4/librpc/idl/epmapper.idl | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'source4/librpc/idl/epmapper.idl') diff --git a/source4/librpc/idl/epmapper.idl b/source4/librpc/idl/epmapper.idl index 89c4e246f9..a35b9c47a3 100644 --- a/source4/librpc/idl/epmapper.idl +++ b/source4/librpc/idl/epmapper.idl @@ -36,11 +36,6 @@ interface epmapper const string NDR_GUID = "8a885d04-1ceb-11c9-9fe8-08002b104860"; const string NDR_GUID_VERSION = 2; - typedef struct { - GUID uuid; - uint16 version; - } epm_prot_uuid; - typedef [enum8bit] enum { /* Level 4 and higher */ @@ -73,11 +68,6 @@ interface epmapper EPM_PROTOCOL_NULL = 0x21 } epm_protocol; - typedef [nodiscriminant] union { - [case(EPM_PROTOCOL_UUID)] epm_prot_uuid uuid; - [default] [flag(NDR_REMAINING)] DATA_BLOB lhs_data; - } epm_protocol_info; - typedef struct { /*FIXME */ } epm_rhs_dnet_nsp; @@ -111,7 +101,7 @@ interface epmapper } epm_rhs_ncacn; typedef struct { - uint16 unknown; + [flag(NDR_REMAINING)] DATA_BLOB unknown; } epm_rhs_uuid; typedef struct { @@ -206,8 +196,8 @@ interface epmapper } epm_rhs; typedef struct { - epm_protocol protocol; - [switch_is(protocol)] epm_protocol_info info; + epm_protocol protocol; + [flag(NDR_REMAINING)] DATA_BLOB lhs_data; } epm_lhs; typedef struct { -- cgit