update for 4.4BSD from Rick Macklem
[unix-history] / usr / src / sys / nfs / rpcv2.h
CommitLineData
a2907882
KM
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 *
dbf0c423 8 * %sccs.include.redist.c%
a2907882 9 *
2c5b44a2 10 * @(#)rpcv2.h 7.5 (Berkeley) %G%
a2907882
KM
11 */
12
13/*
14 * Definitions for Sun RPC Version 2, from
66435314 15 * "RPC: Remote Procedure Call Protocol Specification" RFC1057
a2907882
KM
16 */
17
18/* Version # */
19#define RPC_VER2 2
20
f0f1cbaa 21/* Authentication */
a2907882
KM
22#define RPCAUTH_NULL 0
23#define RPCAUTH_UNIX 1
24#define RPCAUTH_SHORT 2
2c5b44a2 25#define RPCAUTH_NQNFS 300000
f0f1cbaa
KM
26#define RPCAUTH_MAXSIZ 400
27#define RPCAUTH_UNIXGIDS 16
a2907882
KM
28
29/* Rpc Constants */
30#define RPC_CALL 0
31#define RPC_REPLY 1
32#define RPC_MSGACCEPTED 0
33#define RPC_MSGDENIED 1
34#define RPC_PROGUNAVAIL 1
35#define RPC_PROGMISMATCH 2
36#define RPC_PROCUNAVAIL 3
37#define RPC_GARBAGE 4 /* I like this one */
38#define RPC_MISMATCH 0
2c5b44a2 39#define RPC_AUTHERR 1
a2907882
KM
40
41/* Authentication failures */
42#define AUTH_BADCRED 1
43#define AUTH_REJECTCRED 2
44#define AUTH_BADVERF 3
45#define AUTH_REJECTVERF 4
46#define AUTH_TOOWEAK 5 /* Give em wheaties */
47
48/* Sizes of rpc header parts */
49#define RPC_SIZ 24
50#define RPC_REPLYSIZ 28
51
52/* RPC Prog definitions */
53#define RPCPROG_MNT 100005
54#define RPCMNT_VER1 1
55#define RPCMNT_MOUNT 1
56#define RPCMNT_DUMP 2
57#define RPCMNT_UMOUNT 3
58#define RPCMNT_UMNTALL 4
59#define RPCMNT_EXPORT 5
60#define RPCMNT_NAMELEN 255
61#define RPCMNT_PATHLEN 1024
62#define RPCPROG_NFS 100003