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