home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / source / rpc_pipes / wksparse.c < prev   
C/C++ Source or Header  |  1997-11-06  |  4KB  |  103 lines

  1.  
  2. /* 
  3.  *  Unix SMB/Netbios implementation.
  4.  *  Version 1.9.
  5.  *  RPC Pipe client / server routines
  6.  *  Copyright (C) Andrew Tridgell              1992-1997,
  7.  *  Copyright (C) Luke Kenneth Casson Leighton 1996-1997,
  8.  *  Copyright (C) Paul Ashton                       1997.
  9.  *  
  10.  *  This program is free software; you can redistribute it and/or modify
  11.  *  it under the terms of the GNU General Public License as published by
  12.  *  the Free Software Foundation; either version 2 of the License, or
  13.  *  (at your option) any later version.
  14.  *  
  15.  *  This program is distributed in the hope that it will be useful,
  16.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.  *  GNU General Public License for more details.
  19.  *  
  20.  *  You should have received a copy of the GNU General Public License
  21.  *  along with this program; if not, write to the Free Software
  22.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  */
  24.  
  25.  
  26. #include "../includes.h"
  27.  
  28. extern int DEBUGLEVEL;
  29.  
  30. #ifdef NTDOMAIN
  31.  
  32. /*******************************************************************
  33. reads or writes a structure.
  34. ********************************************************************/
  35. char* wks_io_q_unknown_0(BOOL io, WKS_Q_UNKNOWN_0 *q_u, char *q, char *base, int align, int depth)
  36. {
  37.     if (q_u == NULL) return NULL;
  38.  
  39.     DEBUG(5,("%s%04x wks_io_q_unknown_0\n", tab_depth(depth), PTR_DIFF(q, base)));
  40.     depth++;
  41.  
  42.     q = align_offset(q, base, align);
  43.  
  44.     DBG_RW_IVAL("ptr_srv_name", depth, base, io, q, q_u->ptr_srv_name); q += 4;
  45.     q = smb_io_unistr2(io, &(q_u->uni_srv_name), q, base, align, depth); 
  46.  
  47.     q = align_offset(q, base, align);
  48.  
  49.     DBG_RW_IVAL("unknown_0   ", depth, base, io, q, q_u->unknown_0   ); q += 4;
  50.     DBG_RW_IVAL("unknown_1   ", depth, base, io, q, q_u->unknown_1   ); q += 4;
  51.  
  52.     return q;
  53. }
  54.  
  55. /*******************************************************************
  56. reads or writes a structure.
  57. ********************************************************************/
  58. char* wks_io_r_unknown_0(BOOL io, WKS_R_UNKNOWN_0 *r_u, char *q, char *base, int align, int depth)
  59. {
  60.     if (r_u == NULL) return NULL;
  61.  
  62.     DEBUG(5,("%s%04x wks_io_r_unknown_0\n", tab_depth(depth), PTR_DIFF(q, base)));
  63.     depth++;
  64.  
  65.     q = align_offset(q, base, align);
  66.  
  67.     DBG_RW_IVAL("unknown_0   ", depth, base, io, q, r_u->unknown_0   ); q += 4; /* 64 - unknown */
  68.     DBG_RW_IVAL("ptr_1       ", depth, base, io, q, r_u->ptr_1       ); q += 4; /* pointer 1 */
  69.     DBG_RW_IVAL("unknown_1   ", depth, base, io, q, r_u->unknown_1   ); q += 4; /* 0x0000 01f4 - unknown */
  70.     DBG_RW_IVAL("ptr_srv_name", depth, base, io, q, r_u->ptr_srv_name); q += 4; /* pointer to server name */
  71.     DBG_RW_IVAL("ptr_dom_name", depth, base, io, q, r_u->ptr_dom_name); q += 4; /* pointer to domain name */
  72.     DBG_RW_IVAL("unknown_2   ", depth, base, io, q, r_u->unknown_2   ); q += 4; /* 4 - unknown */
  73.     DBG_RW_IVAL("unknown_3   ", depth, base, io, q, r_u->unknown_3   ); q += 4; /* 0 - unknown */
  74.  
  75.     q = smb_io_unistr2(io, &(r_u->uni_srv_name), q, base, align, depth); 
  76.     q = align_offset(q, base, align);
  77.  
  78.     q = smb_io_unistr2(io, &(r_u->uni_dom_name), q, base, align, depth); 
  79.     q = align_offset(q, base, align);
  80.  
  81.     DBG_RW_IVAL("status        ", depth, base, io, q, r_u->status); q += 4;
  82.  
  83.     return q;
  84. }
  85.  
  86. #if 0
  87. /*******************************************************************
  88. reads or writes a structure.
  89. ********************************************************************/
  90.  char* lsa_io_(BOOL io, *, char *q, char *base, int align, int depth)
  91. {
  92.     if (== NULL) return NULL;
  93.  
  94.     q = align_offset(q, base, align);
  95.     
  96.     DBG_RW_IVAL("", depth, base, io, q, ); q += 4;
  97.  
  98.     return q;
  99. }
  100. #endif
  101.  
  102. #endif
  103.