174462Salfred/* $NetBSD: svc_dg.h,v 1.1 2000/06/02 23:11:16 fvdl Exp $ */ 274462Salfred/* $FreeBSD$ */ 374462Salfred 4258578Shrs/*- 5258578Shrs * Copyright (c) 2009, Sun Microsystems, Inc. 6258578Shrs * All rights reserved. 7258578Shrs * 8258578Shrs * Redistribution and use in source and binary forms, with or without 9258578Shrs * modification, are permitted provided that the following conditions are met: 10258578Shrs * - Redistributions of source code must retain the above copyright notice, 11258578Shrs * this list of conditions and the following disclaimer. 12258578Shrs * - Redistributions in binary form must reproduce the above copyright notice, 13258578Shrs * this list of conditions and the following disclaimer in the documentation 14258578Shrs * and/or other materials provided with the distribution. 15258578Shrs * - Neither the name of Sun Microsystems, Inc. nor the names of its 16258578Shrs * contributors may be used to endorse or promote products derived 17258578Shrs * from this software without specific prior written permission. 18258578Shrs * 19258578Shrs * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20258578Shrs * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21258578Shrs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22258578Shrs * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 23258578Shrs * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24258578Shrs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25258578Shrs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26258578Shrs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27258578Shrs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28258578Shrs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29258578Shrs * POSSIBILITY OF SUCH DAMAGE. 3074462Salfred */ 3174462Salfred/* 3274462Salfred * XXX - this file exists only so that the rpcbind code can pull it in. 3374462Salfred * This should go away. It should only be include by svc_dg.c and 3474462Salfred * rpcb_svc_com.c in the rpcbind code. 3574462Salfred */ 3674462Salfred 3774462Salfred/* 3874462Salfred * kept in xprt->xp_p2 3974462Salfred */ 4074462Salfredstruct svc_dg_data { 4174462Salfred /* XXX: optbuf should be the first field, used by ti_opts.c code */ 4274462Salfred size_t su_iosz; /* size of send.recv buffer */ 4374462Salfred u_int32_t su_xid; /* transaction id */ 4474462Salfred XDR su_xdrs; /* XDR handle */ 4574462Salfred char su_verfbody[MAX_AUTH_BYTES]; /* verifier body */ 4674462Salfred void *su_cache; /* cached data, NULL if none */ 47194448Skan struct netbuf su_srcaddr; /* dst address of last msg */ 4874462Salfred}; 4974462Salfred 5074462Salfred#define __rpcb_get_dg_xidp(x) (&((struct svc_dg_data *)(x)->xp_p2)->su_xid) 51