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