krpc.h revision 1.10 1 1.10 riastrad /* $NetBSD: krpc.h,v 1.10 2024/12/07 02:05:55 riastradh Exp $ */
2 1.10 riastrad
3 1.10 riastrad #ifndef _NFS_KRPC_H_
4 1.10 riastrad #define _NFS_KRPC_H_
5 1.1 gwr
6 1.1 gwr #include <sys/cdefs.h>
7 1.1 gwr
8 1.6 yamt #ifdef _KERNEL
9 1.10 riastrad
10 1.9 dsl int krpc_call(struct sockaddr_in *sin,
11 1.4 cgd u_int prog, u_int vers, u_int func,
12 1.9 dsl struct mbuf **data, struct mbuf **from, struct lwp *l);
13 1.1 gwr
14 1.9 dsl int krpc_portmap(struct sockaddr_in *sin,
15 1.7 jonathan u_int prog, u_int vers, u_int proto, u_int16_t *portp,
16 1.9 dsl struct lwp *l);
17 1.3 gwr
18 1.9 dsl struct mbuf *xdr_string_encode(char *str, int len);
19 1.9 dsl struct mbuf *xdr_string_decode(struct mbuf *m, char *str, int *len_p);
20 1.9 dsl struct mbuf *xdr_inaddr_encode(struct in_addr *ia);
21 1.9 dsl struct mbuf *xdr_inaddr_decode(struct mbuf *m, struct in_addr *ia);
22 1.10 riastrad
23 1.6 yamt #endif /* _KERNEL */
24 1.1 gwr
25 1.1 gwr /*
26 1.1 gwr * RPC definitions for the portmapper
27 1.1 gwr */
28 1.1 gwr #define PMAPPORT 111
29 1.1 gwr #define PMAPPROG 100000
30 1.1 gwr #define PMAPVERS 2
31 1.1 gwr #define PMAPPROC_NULL 0
32 1.1 gwr #define PMAPPROC_SET 1
33 1.1 gwr #define PMAPPROC_UNSET 2
34 1.1 gwr #define PMAPPROC_GETPORT 3
35 1.1 gwr #define PMAPPROC_DUMP 4
36 1.1 gwr #define PMAPPROC_CALLIT 5
37 1.1 gwr
38 1.1 gwr /*
39 1.1 gwr * RPC definitions for bootparamd
40 1.1 gwr */
41 1.1 gwr #define BOOTPARAM_PROG 100026
42 1.1 gwr #define BOOTPARAM_VERS 1
43 1.1 gwr #define BOOTPARAM_WHOAMI 1
44 1.1 gwr #define BOOTPARAM_GETFILE 2
45 1.1 gwr
46 1.10 riastrad #endif /* _NFS_KRPC_H_ */
47