2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A *
2N/A * Copyright (c) 1984, 1991, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#include <rpc/types.h>
2N/A
2N/A#include <rpc/types.h>
2N/A#include <sys/time.h>
2N/A#include <sys/errno.h>
2N/A#include <nfs/nfs.h>
2N/A#define MAX_MACHINE_NAME 255
2N/A#define MAX_PATH_LEN 1024
2N/A#define MAX_FILEID 32
2N/A#define IP_ADDR_TYPE 1
2N/A
2N/Atypedef char *bp_machine_name_t;
2N/Abool_t xdr_bp_machine_name_t();
2N/A
2N/Atypedef char *bp_path_t;
2N/Abool_t xdr_bp_path_t();
2N/A
2N/Atypedef char *bp_fileid_t;
2N/Abool_t xdr_bp_fileid_t();
2N/A
2N/Astruct ip_addr_t {
2N/A char net;
2N/A char host;
2N/A char lh;
2N/A char impno;
2N/A};
2N/Atypedef struct ip_addr_t ip_addr_t;
2N/Abool_t xdr_ip_addr_t();
2N/A
2N/Astruct bp_address {
2N/A int address_type;
2N/A union {
2N/A ip_addr_t ip_addr;
2N/A } bp_address_u;
2N/A};
2N/Atypedef struct bp_address bp_address;
2N/Abool_t xdr_bp_address();
2N/A
2N/Astruct bp_whoami_arg {
2N/A bp_address client_address;
2N/A};
2N/Atypedef struct bp_whoami_arg bp_whoami_arg;
2N/Abool_t xdr_bp_whoami_arg();
2N/A
2N/Astruct bp_whoami_res {
2N/A bp_machine_name_t client_name;
2N/A bp_machine_name_t domain_name;
2N/A bp_address router_address;
2N/A};
2N/Atypedef struct bp_whoami_res bp_whoami_res;
2N/Abool_t xdr_bp_whoami_res();
2N/A
2N/Astruct bp_getfile_arg {
2N/A bp_machine_name_t client_name;
2N/A bp_fileid_t file_id;
2N/A};
2N/Atypedef struct bp_getfile_arg bp_getfile_arg;
2N/Abool_t xdr_bp_getfile_arg();
2N/A
2N/Astruct bp_getfile_res {
2N/A bp_machine_name_t server_name;
2N/A bp_address server_address;
2N/A bp_path_t server_path;
2N/A};
2N/Atypedef struct bp_getfile_res bp_getfile_res;
2N/Abool_t xdr_bp_getfile_res();
2N/A
2N/A#define BOOTPARAMPROG ((rpcprog_t)100026)
2N/A#define BOOTPARAMVERS ((rpcvers_t)1)
2N/A#define BOOTPARAMPROC_WHOAMI ((rpcproc_t)1)
2N/Aextern bp_whoami_res *bootparamproc_whoami_1();
2N/A#define BOOTPARAMPROC_GETFILE ((rpcproc_t)2)
2N/Aextern bp_getfile_res *bootparamproc_getfile_1();