aboutsummaryrefslogtreecommitdiff
path: root/sys/nfs/krpc.h
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>1997-05-11 18:05:39 +0000
committerTor Egge <tegge@FreeBSD.org>1997-05-11 18:05:39 +0000
commit432aad0e9818ec0d610601dcdf20588645ee7424 (patch)
treee0d8a7d50c38b03d4a574055c66b94de6d1fe093 /sys/nfs/krpc.h
parent74714a48875fc44aa0fd760a9586b61284c64324 (diff)
Bring in some kernel bootp support. This removes the need for netboot
to fill in the nfs_diskless structure, at the cost of some kernel bloat. The advantage is that this code works on a wider range of network adapters than netboot. Several new kernel options are documented in LINT. Obtained from: parts of the code comes from NetBSD.
Notes
Notes: svn path=/head/; revision=25723
Diffstat (limited to 'sys/nfs/krpc.h')
-rw-r--r--sys/nfs/krpc.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/nfs/krpc.h b/sys/nfs/krpc.h
new file mode 100644
index 000000000000..1da22f13b603
--- /dev/null
+++ b/sys/nfs/krpc.h
@@ -0,0 +1,30 @@
+/* $NetBSD: krpc.h,v 1.4 1995/12/19 23:07:11 cgd Exp $ */
+/* $Id:$ */
+
+#include <sys/cdefs.h>
+
+int krpc_call __P((struct sockaddr_in *sin,
+ u_int prog, u_int vers, u_int func,
+ struct mbuf **data, struct mbuf **from, struct proc *procp));
+
+int krpc_portmap __P((struct sockaddr_in *sin,
+ u_int prog, u_int vers, u_int16_t *portp,struct proc *procp));
+
+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));
+
+
+/*
+ * 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