rpcv2.h revision 1.1
11.1Sgwr/* $NetBSD: rpcv2.h,v 1.1 1996/02/26 23:05:32 gwr Exp $ */ 21.1Sgwr 31.1Sgwr/* 41.1Sgwr * Copyright (c) 1989, 1993 51.1Sgwr * The Regents of the University of California. All rights reserved. 61.1Sgwr * 71.1Sgwr * This code is derived from software contributed to Berkeley by 81.1Sgwr * Rick Macklem at The University of Guelph. 91.1Sgwr * 101.1Sgwr * Redistribution and use in source and binary forms, with or without 111.1Sgwr * modification, are permitted provided that the following conditions 121.1Sgwr * are met: 131.1Sgwr * 1. Redistributions of source code must retain the above copyright 141.1Sgwr * notice, this list of conditions and the following disclaimer. 151.1Sgwr * 2. Redistributions in binary form must reproduce the above copyright 161.1Sgwr * notice, this list of conditions and the following disclaimer in the 171.1Sgwr * documentation and/or other materials provided with the distribution. 181.1Sgwr * 3. All advertising materials mentioning features or use of this software 191.1Sgwr * must display the following acknowledgement: 201.1Sgwr * This product includes software developed by the University of 211.1Sgwr * California, Berkeley and its contributors. 221.1Sgwr * 4. Neither the name of the University nor the names of its contributors 231.1Sgwr * may be used to endorse or promote products derived from this software 241.1Sgwr * without specific prior written permission. 251.1Sgwr * 261.1Sgwr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 271.1Sgwr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 281.1Sgwr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 291.1Sgwr * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 301.1Sgwr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 311.1Sgwr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 321.1Sgwr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 331.1Sgwr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 341.1Sgwr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 351.1Sgwr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 361.1Sgwr * SUCH DAMAGE. 371.1Sgwr * 381.1Sgwr * @(#)rpcv2.h 8.1 (Berkeley) 6/10/93 391.1Sgwr */ 401.1Sgwr 411.1Sgwr/* 421.1Sgwr * Definitions for Sun RPC Version 2, from 431.1Sgwr * "RPC: Remote Procedure Call Protocol Specification" RFC1057 441.1Sgwr */ 451.1Sgwr 461.1Sgwr/* Version # */ 471.1Sgwr#define RPC_VER2 2 481.1Sgwr 491.1Sgwr/* Authentication */ 501.1Sgwr#define RPCAUTH_NULL 0 511.1Sgwr#define RPCAUTH_UNIX 1 521.1Sgwr#define RPCAUTH_SHORT 2 531.1Sgwr#define RPCAUTH_MAXSIZ 400 541.1Sgwr#define RPCAUTH_UNIXGIDS 16 551.1Sgwr 561.1Sgwr/* Rpc Constants */ 571.1Sgwr#define RPC_CALL 0 581.1Sgwr#define RPC_REPLY 1 591.1Sgwr#define RPC_MSGACCEPTED 0 601.1Sgwr#define RPC_MSGDENIED 1 611.1Sgwr#define RPC_PROGUNAVAIL 1 621.1Sgwr#define RPC_PROGMISMATCH 2 631.1Sgwr#define RPC_PROCUNAVAIL 3 641.1Sgwr#define RPC_GARBAGE 4 /* I like this one */ 651.1Sgwr#define RPC_MISMATCH 0 661.1Sgwr#define RPC_AUTHERR 1 671.1Sgwr 681.1Sgwr/* Authentication failures */ 691.1Sgwr#define AUTH_BADCRED 1 701.1Sgwr#define AUTH_REJECTCRED 2 711.1Sgwr#define AUTH_BADVERF 3 721.1Sgwr#define AUTH_REJECTVERF 4 731.1Sgwr#define AUTH_TOOWEAK 5 /* Give em wheaties */ 741.1Sgwr 751.1Sgwr/* Sizes of rpc header parts */ 761.1Sgwr#define RPC_SIZ 24 771.1Sgwr#define RPC_REPLYSIZ 28 781.1Sgwr 791.1Sgwr/* RPC Prog definitions */ 801.1Sgwr#define RPCPROG_MNT 100005 811.1Sgwr#define RPCMNT_VER1 1 821.1Sgwr#define RPCMNT_MOUNT 1 831.1Sgwr#define RPCMNT_DUMP 2 841.1Sgwr#define RPCMNT_UMOUNT 3 851.1Sgwr#define RPCMNT_UMNTALL 4 861.1Sgwr#define RPCMNT_EXPORT 5 871.1Sgwr#define RPCMNT_NAMELEN 255 881.1Sgwr#define RPCMNT_PATHLEN 1024 891.1Sgwr#define RPCPROG_NFS 100003 90