1*11291SRobert.Thurlow@Sun.COM /* 2*11291SRobert.Thurlow@Sun.COM * CDDL HEADER START 3*11291SRobert.Thurlow@Sun.COM * 4*11291SRobert.Thurlow@Sun.COM * The contents of this file are subject to the terms of the 5*11291SRobert.Thurlow@Sun.COM * Common Development and Distribution License (the "License"). 6*11291SRobert.Thurlow@Sun.COM * You may not use this file except in compliance with the License. 7*11291SRobert.Thurlow@Sun.COM * 8*11291SRobert.Thurlow@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*11291SRobert.Thurlow@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*11291SRobert.Thurlow@Sun.COM * See the License for the specific language governing permissions 11*11291SRobert.Thurlow@Sun.COM * and limitations under the License. 12*11291SRobert.Thurlow@Sun.COM * 13*11291SRobert.Thurlow@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*11291SRobert.Thurlow@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*11291SRobert.Thurlow@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*11291SRobert.Thurlow@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*11291SRobert.Thurlow@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*11291SRobert.Thurlow@Sun.COM * 19*11291SRobert.Thurlow@Sun.COM * CDDL HEADER END 20*11291SRobert.Thurlow@Sun.COM */ 21*11291SRobert.Thurlow@Sun.COM /* 22*11291SRobert.Thurlow@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*11291SRobert.Thurlow@Sun.COM * Use is subject to license terms. 24*11291SRobert.Thurlow@Sun.COM */ 25*11291SRobert.Thurlow@Sun.COM 26*11291SRobert.Thurlow@Sun.COM #ifndef _NFS_RESOLVE_H 27*11291SRobert.Thurlow@Sun.COM #define _NFS_RESOLVE_H 28*11291SRobert.Thurlow@Sun.COM 29*11291SRobert.Thurlow@Sun.COM /* number of transports to try */ 30*11291SRobert.Thurlow@Sun.COM #define MNT_PREF_LISTLEN 2 31*11291SRobert.Thurlow@Sun.COM #define FIRST_TRY 1 32*11291SRobert.Thurlow@Sun.COM #define SECOND_TRY 2 33*11291SRobert.Thurlow@Sun.COM 34*11291SRobert.Thurlow@Sun.COM extern struct knetconfig *get_knconf(struct netconfig *); 35*11291SRobert.Thurlow@Sun.COM extern void free_knconf(struct knetconfig *); 36*11291SRobert.Thurlow@Sun.COM extern bool_t xdr_nfs_fsl_info(XDR *, struct nfs_fsl_info *); 37*11291SRobert.Thurlow@Sun.COM extern struct netconfig *get_netconfig(NCONF_HANDLE *, ushort_t, char *); 38*11291SRobert.Thurlow@Sun.COM extern int setup_nb_parms(struct netconfig *, struct t_bind *, struct t_info *, 39*11291SRobert.Thurlow@Sun.COM char *, int, bool_t, ushort_t, rpcprog_t, rpcvers_t, int); 40*11291SRobert.Thurlow@Sun.COM extern void cleanup_tli_parms(struct t_bind *, int); 41*11291SRobert.Thurlow@Sun.COM extern struct nfs_fsl_info *get_nfs4ref_info(char *, int, int); 42*11291SRobert.Thurlow@Sun.COM extern void free_nfs4ref_info(struct nfs_fsl_info *); 43*11291SRobert.Thurlow@Sun.COM extern struct netbuf *get_server_addr(char *, rpcprog_t, rpcvers_t, 44*11291SRobert.Thurlow@Sun.COM struct netconfig *, ushort_t, struct t_info *, caddr_t *, 45*11291SRobert.Thurlow@Sun.COM bool_t, char *, enum clnt_stat *); 46*11291SRobert.Thurlow@Sun.COM extern struct netbuf *resolve_netconf(char *, rpcprog_t, rpcvers_t, 47*11291SRobert.Thurlow@Sun.COM struct netconfig **, ushort_t, struct t_info *, 48*11291SRobert.Thurlow@Sun.COM caddr_t *, bool_t, char *, enum clnt_stat *); 49*11291SRobert.Thurlow@Sun.COM 50*11291SRobert.Thurlow@Sun.COM #endif /* _NFS_RESOLVE_H */ 51