Home | History | Annotate | Line # | Download | only in common
krpc.h revision 1.2
      1  1.1  dholland /*	NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp 	*/
      2  1.1  dholland /* FreeBSD: head/sys/nfs/krpc.h 221032 2011-04-25 22:22:51Z rmacklem 	*/
      3  1.2  pgoyette /* $NetBSD: krpc.h,v 1.2 2016/12/13 22:52:46 pgoyette Exp $	*/
      4  1.1  dholland 
      5  1.1  dholland #include <sys/cdefs.h>
      6  1.1  dholland 
      7  1.1  dholland struct mbuf;
      8  1.1  dholland struct thread;
      9  1.1  dholland struct sockaddr;
     10  1.1  dholland struct sockaddr_in;
     11  1.1  dholland 
     12  1.1  dholland int krpc_call(struct sockaddr_in *_sin,
     13  1.1  dholland 	u_int prog, u_int vers, u_int func,
     14  1.2  pgoyette 	struct mbuf **data, struct sockaddr **from, struct lwp *td);
     15  1.1  dholland 
     16  1.1  dholland int krpc_portmap(struct sockaddr_in *_sin,
     17  1.2  pgoyette 	u_int prog, u_int vers, u_int16_t *portp, struct lwp *td);
     18  1.1  dholland 
     19  1.1  dholland struct mbuf *xdr_string_encode(char *str, int len);
     20  1.1  dholland 
     21  1.1  dholland /*
     22  1.1  dholland  * RPC definitions for the portmapper
     23  1.1  dholland  */
     24  1.1  dholland #define	PMAPPORT		111
     25  1.1  dholland #define	PMAPPROG		100000
     26  1.1  dholland #define	PMAPVERS		2
     27  1.1  dholland #define	PMAPPROC_NULL		0
     28  1.1  dholland #define	PMAPPROC_SET		1
     29  1.1  dholland #define	PMAPPROC_UNSET		2
     30  1.1  dholland #define	PMAPPROC_GETPORT	3
     31  1.1  dholland #define	PMAPPROC_DUMP		4
     32  1.1  dholland #define	PMAPPROC_CALLIT		5
     33