16ca35587Sdholland /* NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp */ 26ca35587Sdholland /* FreeBSD: head/sys/nfs/krpc.h 221032 2011-04-25 22:22:51Z rmacklem */ 3*0342d508Spgoyette /* $NetBSD: krpc.h,v 1.2 2016/12/13 22:52:46 pgoyette Exp $ */ 46ca35587Sdholland 56ca35587Sdholland #include <sys/cdefs.h> 66ca35587Sdholland 76ca35587Sdholland struct mbuf; 86ca35587Sdholland struct thread; 96ca35587Sdholland struct sockaddr; 106ca35587Sdholland struct sockaddr_in; 116ca35587Sdholland 126ca35587Sdholland int krpc_call(struct sockaddr_in *_sin, 136ca35587Sdholland u_int prog, u_int vers, u_int func, 14*0342d508Spgoyette struct mbuf **data, struct sockaddr **from, struct lwp *td); 156ca35587Sdholland 166ca35587Sdholland int krpc_portmap(struct sockaddr_in *_sin, 17*0342d508Spgoyette u_int prog, u_int vers, u_int16_t *portp, struct lwp *td); 186ca35587Sdholland 196ca35587Sdholland struct mbuf *xdr_string_encode(char *str, int len); 206ca35587Sdholland 216ca35587Sdholland /* 226ca35587Sdholland * RPC definitions for the portmapper 236ca35587Sdholland */ 246ca35587Sdholland #define PMAPPORT 111 256ca35587Sdholland #define PMAPPROG 100000 266ca35587Sdholland #define PMAPVERS 2 276ca35587Sdholland #define PMAPPROC_NULL 0 286ca35587Sdholland #define PMAPPROC_SET 1 296ca35587Sdholland #define PMAPPROC_UNSET 2 306ca35587Sdholland #define PMAPPROC_GETPORT 3 316ca35587Sdholland #define PMAPPROC_DUMP 4 326ca35587Sdholland #define PMAPPROC_CALLIT 5 33