home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / pn.h < prev    next >
Encoding:
Text File  |  1990-12-08  |  1.9 KB  |  71 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ident    "@(#)/usr/include/pn.h.sl 1.1 4.0 12/08/90 22308 AT&T-USL"
  11. /* switch table structure */
  12.  
  13. typedef struct {
  14.     char *sw_opcode;    /* opcode */
  15.     int sw_idx;        /* index */
  16. } pntab_t;
  17.  
  18. #define RFS 105            /* for rfsdaemon */
  19.  
  20. #define NUMSWENT 3        /* the number of entries in sw_tab */
  21.  
  22. /* these are the indicies into sw_tab.
  23.    note that the orders must match the opcodes */
  24.  
  25. #define RF_RF 0            /* remote file service */
  26. #define RF_NS 1            /* name service */
  27. #define RF_AK 2            /* acknowledgement */
  28.  
  29. #define NUMDUENT 1        /* the number of entries in du_tab */
  30.  
  31. /* these are the indicies into du_tab.
  32.    note that the orders must match the opcodes */
  33.  
  34. #define MNT 0            /* mount case */
  35.  
  36. #define PASSWDLEN    20        /* length of password */
  37. #define C_RETRY        2        /* command retry count */
  38. #define DEVSTR        "/dev/%s"
  39. #define LISTNMSG    "NLPS:000:001:%d"
  40. #define CANONSTR    "c4ll"        /* canonical pntab */
  41. #define CANON_CLEN    16        /* canonical length of pntab */
  42. #define OPCODLEN    4        /* 3 chars + null */
  43.  
  44. /* negotiate data packect */
  45.  
  46. typedef struct {
  47.     long n_hetero;        /* heterogeneity indication */
  48.     char n_passwd[PASSWDLEN];    /* password */
  49.     struct rf_token n_token;    /* client's token */
  50.     char n_netname[MAXDNAME];    /* netnodename */
  51. } ndata_t;
  52.  
  53. typedef struct {
  54.     char pn_op[OPCODLEN];
  55.     long pn_lo;
  56.     long pn_hi;
  57. } pnhdr_t;
  58.  
  59. /* these version numbers specify compatibility between
  60.     different versions of protocol negotiations */
  61.  
  62. #define LO_VER    1        /* lo version of this library */
  63. #define HI_VER    1        /* hi version of this library */
  64.  
  65. /* these are the flags for the negotiate routine */
  66.  
  67. #define    SERVER    0
  68. #define    CLIENT    1
  69.  
  70. #define TIMOD    "timod"
  71.