1/*	$OpenBSD: krpc.h,v 1.7 2012/12/05 23:20:23 deraadt Exp $	*/
2/*	$NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $	*/
3
4int krpc_call(struct sockaddr_in *, u_int, u_int, u_int, struct mbuf **,
5    struct mbuf **, int);
6int krpc_portmap(struct sockaddr_in *, u_int, u_int, u_int16_t *);
7
8struct mbuf *xdr_string_encode(char *, int);
9struct mbuf *xdr_string_decode(struct mbuf *, char *, int *);
10struct mbuf *xdr_inaddr_encode(struct in_addr *);
11struct mbuf *xdr_inaddr_decode(struct mbuf *, struct in_addr *);
12
13/* RPC definitions for the portmapper. */
14#define	PMAPPORT		111
15#define	PMAPPROG		100000
16#define	PMAPVERS		2
17#define	PMAPPROC_NULL		0
18#define	PMAPPROC_SET		1
19#define	PMAPPROC_UNSET		2
20#define	PMAPPROC_GETPORT	3
21#define	PMAPPROC_DUMP		4
22#define	PMAPPROC_CALLIT		5
23
24/* RPC definitions for bootparamd. */
25#define	BOOTPARAM_PROG		100026
26#define	BOOTPARAM_VERS		1
27#define BOOTPARAM_WHOAMI	1
28#define BOOTPARAM_GETFILE	2
29
30