Revert "Reconcile ndr_syntax_id used by pidl-generated code and Samba3's RFC_IFACE."
authorGünther Deschner <gd@samba.org>
Tue, 20 May 2008 12:23:23 +0000 (14:23 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 20 May 2008 12:23:23 +0000 (14:23 +0200)
This reverts commit 7bea00dca1ee08ef731dfa73110ef9c190a29919.

source/include/rpc_dce.h
source/rpc_client/cli_pipe.c
source/rpc_parse/parse_rpc.c
source/rpc_server/srv_pipe.c

index 2793421734cd7fecfc9c71850a1d808bc8f2df51..33ab365160430eafccfa732c18c8e7abb1cc4aa8 100644 (file)
@@ -157,7 +157,10 @@ enum schannel_direction {
 #define RPC_MAX_PDU_FRAG_LEN 0x10b8                    /* this is what w2k sets */
 
 /* RPC_IFACE */
-typedef struct ndr_syntax_id RPC_IFACE;
+typedef struct rpc_iface_info {
+       struct GUID uuid;  /* 16 bytes of rpc interface identification */
+       uint32 version;    /* the interface version number */
+} RPC_IFACE;
 
 #define RPC_IFACE_LEN (UUID_SIZE + 4)
 
index ba59a41793b971c3d6bcac69ef61f216970b3691..71422cd9adbfd31df244fb0883e58add901220a6 100644 (file)
@@ -1690,7 +1690,7 @@ static bool check_bind_response(RPC_HDR_BA *hdr_ba, const int pipe_idx, RPC_IFAC
 #endif         /* JERRY */
 
        /* check the transfer syntax */
-       if ((hdr_ba->transfer.if_version != transfer->if_version) ||
+       if ((hdr_ba->transfer.version != transfer->version) ||
             (memcmp(&hdr_ba->transfer.uuid, &transfer->uuid, sizeof(transfer->uuid)) !=0)) {
                DEBUG(2,("bind_rpc_pipe: transfer syntax differs\n"));
                return False;
index b343a6e475f25e65d2d7411ed6dc3e14a982e72c..00ae9d177aa4ddec89d8963ee0470ea2dfed267b 100644 (file)
@@ -341,7 +341,7 @@ static bool smb_io_rpc_iface(const char *desc, RPC_IFACE *ifc, prs_struct *ps, i
        if (!smb_io_uuid(  "uuid", &ifc->uuid, ps, depth))
                return False;
 
-       if(!prs_uint32 ("version", ps, depth, &ifc->if_version))
+       if(!prs_uint32 ("version", ps, depth, &ifc->version))
                return False;
 
        return True;
index b111425451ed5e63cd41d2065ababa81212b8211..05cdb65a8317cba332852a8f91218bfd3bdf4f80 100644 (file)
@@ -995,9 +995,9 @@ bool check_bind_req(struct pipes_struct *p, RPC_IFACE* abstract,
        for ( i=0; pipe_names[i].client_pipe; i++ ) {
                DEBUGADD(10,("checking %s\n", pipe_names[i].client_pipe));
                if ( strequal(pipe_names[i].client_pipe, pname)
-                       && (abstract->if_version == pipe_names[i].abstr_syntax.if_version) 
+                       && (abstract->version == pipe_names[i].abstr_syntax.version) 
                        && (memcmp(&abstract->uuid, &pipe_names[i].abstr_syntax.uuid, sizeof(struct GUID)) == 0)
-                       && (transfer->if_version == pipe_names[i].trans_syntax.if_version)
+                       && (transfer->version == pipe_names[i].trans_syntax.version)
                        && (memcmp(&transfer->uuid, &pipe_names[i].trans_syntax.uuid, sizeof(struct GUID)) == 0) ) {
                        struct api_struct       *fns = NULL;
                        int                     n_fns = 0;