11.4Smlelstv/* $NetBSD: rpcv2.h,v 1.4 2023/12/12 09:12:55 mlelstv 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.2Sagc * 3. Neither the name of the University nor the names of its contributors 191.1Sgwr * may be used to endorse or promote products derived from this software 201.1Sgwr * without specific prior written permission. 211.1Sgwr * 221.1Sgwr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 231.1Sgwr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 241.1Sgwr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 251.1Sgwr * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 261.1Sgwr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 271.1Sgwr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 281.1Sgwr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 291.1Sgwr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 301.1Sgwr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 311.1Sgwr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 321.1Sgwr * SUCH DAMAGE. 331.1Sgwr * 341.1Sgwr * @(#)rpcv2.h 8.1 (Berkeley) 6/10/93 351.1Sgwr */ 361.1Sgwr 371.1Sgwr/* 381.1Sgwr * Definitions for Sun RPC Version 2, from 391.1Sgwr * "RPC: Remote Procedure Call Protocol Specification" RFC1057 401.1Sgwr */ 411.1Sgwr 421.1Sgwr/* Version # */ 431.1Sgwr#define RPC_VER2 2 441.1Sgwr 451.1Sgwr/* Authentication */ 461.1Sgwr#define RPCAUTH_NULL 0 471.1Sgwr#define RPCAUTH_UNIX 1 481.1Sgwr#define RPCAUTH_SHORT 2 491.1Sgwr#define RPCAUTH_MAXSIZ 400 501.1Sgwr#define RPCAUTH_UNIXGIDS 16 511.1Sgwr 521.1Sgwr/* Rpc Constants */ 531.1Sgwr#define RPC_CALL 0 541.1Sgwr#define RPC_REPLY 1 551.1Sgwr#define RPC_MSGACCEPTED 0 561.1Sgwr#define RPC_MSGDENIED 1 571.1Sgwr#define RPC_PROGUNAVAIL 1 581.1Sgwr#define RPC_PROGMISMATCH 2 591.1Sgwr#define RPC_PROCUNAVAIL 3 601.1Sgwr#define RPC_GARBAGE 4 /* I like this one */ 611.1Sgwr#define RPC_MISMATCH 0 621.1Sgwr#define RPC_AUTHERR 1 631.1Sgwr 641.1Sgwr/* Authentication failures */ 651.1Sgwr#define AUTH_BADCRED 1 661.1Sgwr#define AUTH_REJECTCRED 2 671.1Sgwr#define AUTH_BADVERF 3 681.1Sgwr#define AUTH_REJECTVERF 4 691.1Sgwr#define AUTH_TOOWEAK 5 /* Give em wheaties */ 701.1Sgwr 711.1Sgwr/* Sizes of rpc header parts */ 721.1Sgwr#define RPC_SIZ 24 731.1Sgwr#define RPC_REPLYSIZ 28 741.1Sgwr 751.1Sgwr/* RPC Prog definitions */ 761.1Sgwr#define RPCPROG_MNT 100005 771.1Sgwr#define RPCMNT_VER1 1 781.4Smlelstv#define RPCMNT_VER3 3 791.1Sgwr#define RPCMNT_MOUNT 1 801.1Sgwr#define RPCMNT_DUMP 2 811.1Sgwr#define RPCMNT_UMOUNT 3 821.1Sgwr#define RPCMNT_UMNTALL 4 831.1Sgwr#define RPCMNT_EXPORT 5 841.1Sgwr#define RPCMNT_NAMELEN 255 851.1Sgwr#define RPCMNT_PATHLEN 1024 861.1Sgwr#define RPCPROG_NFS 100003 87