krpc.h revision 1.3 1 1.3 gwr /* $NetBSD: krpc.h,v 1.3 1995/04/24 21:54:56 gwr Exp $ */
2 1.1 gwr
3 1.1 gwr #include <sys/cdefs.h>
4 1.1 gwr
5 1.1 gwr int krpc_call __P((struct sockaddr_in *sin, \
6 1.3 gwr u_int prog, u_int vers, u_int func, \
7 1.1 gwr struct mbuf **data, struct mbuf **from));
8 1.1 gwr
9 1.1 gwr int krpc_portmap __P((struct sockaddr_in *sin, \
10 1.3 gwr u_int prog, u_int vers, u_int16_t *portp));
11 1.3 gwr
12 1.3 gwr struct mbuf * xdr_string_encode __P((char *str, int len));
13 1.3 gwr struct mbuf * xdr_string_decode __P((struct mbuf *m, char *str, int *len_p));
14 1.3 gwr struct mbuf * xdr_inaddr_encode __P((struct in_addr *ia));
15 1.3 gwr struct mbuf * xdr_inaddr_decode __P((struct mbuf *m, struct in_addr *ia));
16 1.1 gwr
17 1.1 gwr
18 1.1 gwr /*
19 1.1 gwr * RPC definitions for the portmapper
20 1.1 gwr */
21 1.1 gwr #define PMAPPORT 111
22 1.1 gwr #define PMAPPROG 100000
23 1.1 gwr #define PMAPVERS 2
24 1.1 gwr #define PMAPPROC_NULL 0
25 1.1 gwr #define PMAPPROC_SET 1
26 1.1 gwr #define PMAPPROC_UNSET 2
27 1.1 gwr #define PMAPPROC_GETPORT 3
28 1.1 gwr #define PMAPPROC_DUMP 4
29 1.1 gwr #define PMAPPROC_CALLIT 5
30 1.1 gwr
31 1.1 gwr
32 1.1 gwr /*
33 1.1 gwr * RPC definitions for bootparamd
34 1.1 gwr */
35 1.1 gwr #define BOOTPARAM_PROG 100026
36 1.1 gwr #define BOOTPARAM_VERS 1
37 1.1 gwr #define BOOTPARAM_WHOAMI 1
38 1.1 gwr #define BOOTPARAM_GETFILE 2
39 1.1 gwr
40