|
|
1.1 root 1: /*
2: * Copyright (c) 1989 The Regents of the University of California.
3: * All rights reserved.
4: *
5: * This code is derived from software contributed to Berkeley by
6: * Rick Macklem at The University of Guelph.
7: *
8: * Redistribution is only permitted until one year after the first shipment
9: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
10: * binary forms are permitted provided that: (1) source distributions retain
11: * this entire copyright notice and comment, and (2) distributions including
12: * binaries display the following acknowledgement: This product includes
13: * software developed by the University of California, Berkeley and its
14: * contributors'' in the documentation or other materials provided with the
15: * distribution and in all advertising materials mentioning features or use
16: * of this software. Neither the name of the University nor the names of
17: * its contributors may be used to endorse or promote products derived from
18: * this software without specific prior written permission.
19: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
20: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
21: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22: *
23: * @(#)rpcv2.h 7.4 (Berkeley) 6/28/90
24: */
25:
26: /*
27: * Definitions for Sun RPC Version 2, from
28: * "RPC: Remote Procedure Call Protocol Specification" RFC1057
29: */
30:
31: /* Version # */
32: #define RPC_VER2 2
33:
34: /* Authentication */
35: #define RPCAUTH_NULL 0
36: #define RPCAUTH_UNIX 1
37: #define RPCAUTH_SHORT 2
38: #define RPCAUTH_MAXSIZ 400
39: #define RPCAUTH_UNIXGIDS 16
40:
41: /* Rpc Constants */
42: #define RPC_CALL 0
43: #define RPC_REPLY 1
44: #define RPC_MSGACCEPTED 0
45: #define RPC_MSGDENIED 1
46: #define RPC_PROGUNAVAIL 1
47: #define RPC_PROGMISMATCH 2
48: #define RPC_PROCUNAVAIL 3
49: #define RPC_GARBAGE 4 /* I like this one */
50: #define RPC_MISMATCH 0
51: #define RPC_AUTHFAIL 1
52:
53: /* Authentication failures */
54: #define AUTH_BADCRED 1
55: #define AUTH_REJECTCRED 2
56: #define AUTH_BADVERF 3
57: #define AUTH_REJECTVERF 4
58: #define AUTH_TOOWEAK 5 /* Give em wheaties */
59:
60: /* Sizes of rpc header parts */
61: #define RPC_SIZ 24
62: #define RPC_REPLYSIZ 28
63:
64: /* RPC Prog definitions */
65: #define RPCPROG_MNT 100005
66: #define RPCMNT_VER1 1
67: #define RPCMNT_MOUNT 1
68: #define RPCMNT_DUMP 2
69: #define RPCMNT_UMOUNT 3
70: #define RPCMNT_UMNTALL 4
71: #define RPCMNT_EXPORT 5
72: #define RPCMNT_NAMELEN 255
73: #define RPCMNT_PATHLEN 1024
74: #define RPCPROG_NFS 100003
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.