1 /* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */ 2 /* $Id: krpc.h,v 1.2 1997/05/11 18:05:39 tegge Exp $ */ 3 4 #include <sys/cdefs.h> 5 6 int krpc_call __P((struct sockaddr_in *sin, 7 u_int prog, u_int vers, u_int func, 8 struct mbuf **data, struct mbuf **from, struct proc *procp)); 9 10 int krpc_portmap __P((struct sockaddr_in *sin, 11 u_int prog, u_int vers, u_int16_t *portp,struct proc *procp)); 12 13 struct mbuf *xdr_string_encode __P((char *str, int len)); 14 15 /* 16 * RPC definitions for the portmapper 17 */ 18 #define PMAPPORT 111 19 #define PMAPPROG 100000 20 #define PMAPVERS 2 21 #define PMAPPROC_NULL 0 22 #define PMAPPROC_SET 1 23 #define PMAPPROC_UNSET 2 24 #define PMAPPROC_GETPORT 3 25 #define PMAPPROC_DUMP 4 26 #define PMAPPROC_CALLIT 5 27