home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / rpcsvc / h / bootparam
Encoding:
Text File  |  1995-01-11  |  2.0 KB  |  98 lines

  1. /* -*-C-*-
  2.  *
  3.  * $Header: /ax/networking:include/rpcsvc/bootparam.h:networking  1.1  $
  4.  * $Source: /ax/networking:include/rpcsvc/bootparam.h: $
  5.  *
  6.  * Copyright (c) 1995 Acorn Computers Ltd., Cambridge, England
  7.  *
  8.  * $Log:    bootparam.h,v $
  9.  * Revision 1.1  95/01/11  10:18:45  kwelton
  10.  * Initial revision
  11.  * 
  12.  */
  13.  
  14. #include <rpc/types.h>
  15. #include <sys/time.h>
  16. #include <sys/errno.h>
  17. #ifndef __riscos
  18. #include <nfs/nfs.h>
  19. #endif
  20. #define MAX_MACHINE_NAME 255
  21. #define MAX_PATH_LEN 1024
  22. #define MAX_FILEID 32
  23. #define IP_ADDR_TYPE 1
  24.  
  25. typedef char *bp_machine_name_t;
  26. bool_t xdr_bp_machine_name_t();
  27.  
  28.  
  29. typedef char *bp_path_t;
  30. bool_t xdr_bp_path_t();
  31.  
  32.  
  33. typedef char *bp_fileid_t;
  34. bool_t xdr_bp_fileid_t();
  35.  
  36.  
  37. struct ip_addr_t {
  38.         char net;
  39.         char host;
  40.         char lh;
  41.         char impno;
  42. };
  43. typedef struct ip_addr_t ip_addr_t;
  44. bool_t xdr_ip_addr_t();
  45.  
  46.  
  47. struct bp_address {
  48.         int address_type;
  49.         union {
  50.                 ip_addr_t ip_addr;
  51.         } bp_address_u;
  52. };
  53. typedef struct bp_address bp_address;
  54. bool_t xdr_bp_address();
  55.  
  56.  
  57. struct bp_whoami_arg {
  58.         bp_address client_address;
  59. };
  60. typedef struct bp_whoami_arg bp_whoami_arg;
  61. bool_t xdr_bp_whoami_arg();
  62.  
  63.  
  64. struct bp_whoami_res {
  65.         bp_machine_name_t client_name;
  66.         bp_machine_name_t domain_name;
  67.         bp_address router_address;
  68. };
  69. typedef struct bp_whoami_res bp_whoami_res;
  70. bool_t xdr_bp_whoami_res();
  71.  
  72.  
  73. struct bp_getfile_arg {
  74.         bp_machine_name_t client_name;
  75.         bp_fileid_t file_id;
  76. };
  77. typedef struct bp_getfile_arg bp_getfile_arg;
  78. bool_t xdr_bp_getfile_arg();
  79.  
  80.  
  81. struct bp_getfile_res {
  82.         bp_machine_name_t server_name;
  83.         bp_address server_address;
  84.         bp_path_t server_path;
  85. };
  86. typedef struct bp_getfile_res bp_getfile_res;
  87. bool_t xdr_bp_getfile_res();
  88.  
  89.  
  90. #define BOOTPARAMPROG ((u_long)100026)
  91. #define BOOTPARAMVERS ((u_long)1)
  92. #define BOOTPARAMPROC_WHOAMI ((u_long)1)
  93. extern bp_whoami_res *bootparamproc_whoami_1();
  94. #define BOOTPARAMPROC_GETFILE ((u_long)2)
  95. extern bp_getfile_res *bootparamproc_getfile_1();
  96.  
  97. /* EOF bootparam.h */
  98.