1997-05-11 18:05:39 +00:00
|
|
|
/* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */
|
1999-08-28 01:08:13 +00:00
|
|
|
/* $FreeBSD$ */
|
1997-05-11 18:05:39 +00:00
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
1998-02-01 20:34:07 +00:00
|
|
|
struct mbuf;
|
2001-09-12 08:38:13 +00:00
|
|
|
struct thread;
|
1998-02-01 20:34:07 +00:00
|
|
|
struct sockaddr;
|
|
|
|
struct sockaddr_in;
|
|
|
|
|
2001-09-18 23:32:09 +00:00
|
|
|
int krpc_call(struct sockaddr_in *_sin,
|
1997-05-11 18:05:39 +00:00
|
|
|
u_int prog, u_int vers, u_int func,
|
2001-09-18 23:32:09 +00:00
|
|
|
struct mbuf **data, struct sockaddr **from, struct thread *td);
|
1997-05-11 18:05:39 +00:00
|
|
|
|
2001-09-18 23:32:09 +00:00
|
|
|
int krpc_portmap(struct sockaddr_in *_sin,
|
|
|
|
u_int prog, u_int vers, u_int16_t *portp, struct thread *td);
|
1997-05-11 18:05:39 +00:00
|
|
|
|
2001-09-18 23:32:09 +00:00
|
|
|
struct mbuf *xdr_string_encode(char *str, int len);
|
1997-05-11 18:05:39 +00: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
|