2005-12-11 15:16:03 +03:00
|
|
|
/* $NetBSD: krpc.h,v 1.8 2005/12/11 12:25:16 christos Exp $ */
|
1994-09-26 19:42:29 +03:00
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
2003-05-05 17:21:00 +04:00
|
|
|
#ifdef _KERNEL
|
1995-12-20 02:07:11 +03:00
|
|
|
int krpc_call __P((struct sockaddr_in *sin,
|
|
|
|
u_int prog, u_int vers, u_int func,
|
2005-12-11 15:16:03 +03:00
|
|
|
struct mbuf **data, struct mbuf **from, struct lwp *l));
|
1994-09-26 19:42:29 +03:00
|
|
|
|
1995-12-20 02:07:11 +03:00
|
|
|
int krpc_portmap __P((struct sockaddr_in *sin,
|
2004-05-23 02:52:13 +04:00
|
|
|
u_int prog, u_int vers, u_int proto, u_int16_t *portp,
|
2005-12-11 15:16:03 +03:00
|
|
|
struct lwp *l));
|
1995-04-25 01:54:56 +04:00
|
|
|
|
1995-12-20 02:07:11 +03:00
|
|
|
struct mbuf *xdr_string_encode __P((char *str, int len));
|
|
|
|
struct mbuf *xdr_string_decode __P((struct mbuf *m, char *str, int *len_p));
|
|
|
|
struct mbuf *xdr_inaddr_encode __P((struct in_addr *ia));
|
|
|
|
struct mbuf *xdr_inaddr_decode __P((struct mbuf *m, struct in_addr *ia));
|
2003-05-05 17:21:00 +04:00
|
|
|
#endif /* _KERNEL */
|
1994-09-26 19:42:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* RPC definitions for the portmapper
|
|
|
|
*/
|
|
|
|
#define PMAPPORT 111
|
|
|
|
#define PMAPPROG 100000
|
|
|
|
#define PMAPVERS 2
|
|
|
|
#define PMAPPROC_NULL 0
|
|
|
|
#define PMAPPROC_SET 1
|
|
|
|
#define PMAPPROC_UNSET 2
|
|
|
|
#define PMAPPROC_GETPORT 3
|
|
|
|
#define PMAPPROC_DUMP 4
|
|
|
|
#define PMAPPROC_CALLIT 5
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* RPC definitions for bootparamd
|
|
|
|
*/
|
|
|
|
#define BOOTPARAM_PROG 100026
|
|
|
|
#define BOOTPARAM_VERS 1
|
|
|
|
#define BOOTPARAM_WHOAMI 1
|
|
|
|
#define BOOTPARAM_GETFILE 2
|
|
|
|
|