1 /* $NetBSD: krpc.h,v 1.2 1994/10/26 02:53:36 cgd Exp $ */ 2 3 #include <sys/cdefs.h> 4 5 int krpc_call __P((struct sockaddr_in *sin, \ 6 u_long prog, u_long vers, u_long func, \ 7 struct mbuf **data, struct mbuf **from)); 8 9 int krpc_portmap __P((struct sockaddr_in *sin, \ 10 u_long prog, u_long vers, u_short *portp)); 11 12 13 /* 14 * RPC definitions for the portmapper 15 */ 16 #define PMAPPORT 111 17 #define PMAPPROG 100000 18 #define PMAPVERS 2 19 #define PMAPPROC_NULL 0 20 #define PMAPPROC_SET 1 21 #define PMAPPROC_UNSET 2 22 #define PMAPPROC_GETPORT 3 23 #define PMAPPROC_DUMP 4 24 #define PMAPPROC_CALLIT 5 25 26 27 /* 28 * RPC definitions for bootparamd 29 */ 30 #define BOOTPARAM_PROG 100026 31 #define BOOTPARAM_VERS 1 32 #define BOOTPARAM_WHOAMI 1 33 #define BOOTPARAM_GETFILE 2 34 35