home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / pn.h < prev    next >
Encoding:
Text File  |  1988-06-26  |  1.8 KB  |  71 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. #ident    "@(#)head:pn.h    1.1.1.1"
  9. #ident    "@(#)rfsetup:pn.h    1.2"
  10.  
  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 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.