svc_dg.h revision 1.1 1 1.1 fvdl /* $NetBSD: svc_dg.h,v 1.1 2000/06/02 23:11:16 fvdl Exp $ */
2 1.1 fvdl /*
3 1.1 fvdl * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
4 1.1 fvdl * unrestricted use provided that this legend is included on all tape
5 1.1 fvdl * media and as a part of the software program in whole or part. Users
6 1.1 fvdl * may copy or modify Sun RPC without charge, but are not authorized
7 1.1 fvdl * to license or distribute it to anyone else except as part of a product or
8 1.1 fvdl * program developed by the user.
9 1.1 fvdl *
10 1.1 fvdl * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
11 1.1 fvdl * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
12 1.1 fvdl * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
13 1.1 fvdl *
14 1.1 fvdl * Sun RPC is provided with no support and without any obligation on the
15 1.1 fvdl * part of Sun Microsystems, Inc. to assist in its use, correction,
16 1.1 fvdl * modification or enhancement.
17 1.1 fvdl *
18 1.1 fvdl * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 1.1 fvdl * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
20 1.1 fvdl * OR ANY PART THEREOF.
21 1.1 fvdl *
22 1.1 fvdl * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 1.1 fvdl * or profits or other special, indirect and consequential damages, even if
24 1.1 fvdl * Sun has been advised of the possibility of such damages.
25 1.1 fvdl *
26 1.1 fvdl * Sun Microsystems, Inc.
27 1.1 fvdl * 2550 Garcia Avenue
28 1.1 fvdl * Mountain View, California 94043
29 1.1 fvdl */
30 1.1 fvdl
31 1.1 fvdl /*
32 1.1 fvdl * XXX - this file exists only so that the rpcbind code can pull it in.
33 1.1 fvdl * This should go away. It should only be include by svc_dg.c and
34 1.1 fvdl * rpcb_svc_com.c in the rpcbind code.
35 1.1 fvdl */
36 1.1 fvdl
37 1.1 fvdl /*
38 1.1 fvdl * kept in xprt->xp_p2
39 1.1 fvdl */
40 1.1 fvdl struct svc_dg_data {
41 1.1 fvdl /* XXX: optbuf should be the first field, used by ti_opts.c code */
42 1.1 fvdl size_t su_iosz; /* size of send.recv buffer */
43 1.1 fvdl u_int32_t su_xid; /* transaction id */
44 1.1 fvdl XDR su_xdrs; /* XDR handle */
45 1.1 fvdl char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */
46 1.1 fvdl void *su_cache; /* cached data, NULL if none */
47 1.1 fvdl };
48 1.1 fvdl
49 1.1 fvdl #define __rpcb_get_dg_xidp(x) (&((struct svc_dg_data *)(x)->xp_p2)->su_xid)
50