1 /* 2 * linux/include/net/sunrpc/msg_prot.h 3 * 4 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> 5 */ 6 7 #ifndef _LINUX_SUNRPC_MSGPROT_H_ 8 #define _LINUX_SUNRPC_MSGPROT_H_ 9 10 #ifdef __KERNEL__ /* user programs should get these from the rpc header files */ 11 12 #define RPC_VERSION 2 13 14 enum rpc_auth_flavor { 15 RPC_AUTH_NULL = 0, 16 RPC_AUTH_UNIX = 1, 17 RPC_AUTH_SHORT = 2, 18 RPC_AUTH_DES = 3, 19 RPC_AUTH_KRB = 4, 20 }; 21 22 enum rpc_msg_type { 23 RPC_CALL = 0, 24 RPC_REPLY = 1 25 }; 26 27 enum rpc_reply_stat { 28 RPC_MSG_ACCEPTED = 0, 29 RPC_MSG_DENIED = 1 30 }; 31 32 enum rpc_accept_stat { 33 RPC_SUCCESS = 0, 34 RPC_PROG_UNAVAIL = 1, 35 RPC_PROG_MISMATCH = 2, 36 RPC_PROC_UNAVAIL = 3, 37 RPC_GARBAGE_ARGS = 4, 38 RPC_SYSTEM_ERR = 5 39 }; 40 41 enum rpc_reject_stat { 42 RPC_MISMATCH = 0, 43 RPC_AUTH_ERROR = 1 44 }; 45 46 enum rpc_auth_stat { 47 RPC_AUTH_OK = 0, 48 RPC_AUTH_BADCRED = 1, 49 RPC_AUTH_REJECTEDCRED = 2, 50 RPC_AUTH_BADVERF = 3, 51 RPC_AUTH_REJECTEDVERF = 4, 52 RPC_AUTH_TOOWEAK = 5 53 }; 54 55 #define RPC_PMAP_PROGRAM 100000 56 #define RPC_PMAP_VERSION 2 57 #define RPC_PMAP_PORT 111 58 59 #define RPC_MAXNETNAMELEN 256 60 61 #endif /* __KERNEL__ */ 62 #endif /* _LINUX_SUNRPC_MSGPROT_H_ */ 63