2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow/*
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * CDDL HEADER START
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow *
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * The contents of this file are subject to the terms of the
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * Common Development and Distribution License (the "License").
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * You may not use this file except in compliance with the License.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow *
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * or http://www.opensolaris.org/os/licensing.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * See the License for the specific language governing permissions
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * and limitations under the License.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow *
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * When distributing Covered Code, include this CDDL HEADER in each
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * If applicable, add the following below this CDDL HEADER, with the
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * fields enclosed by brackets "[]" replaced with your own identifying
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * information: Portions Copyright [yyyy] [name of copyright owner]
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow *
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * CDDL HEADER END
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow */
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow/*
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow * Use is subject to license terms.
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow */
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#ifndef _NFS_RESOLVE_H
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#define _NFS_RESOLVE_H
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow/* number of transports to try */
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#define MNT_PREF_LISTLEN 2
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#define FIRST_TRY 1
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#define SECOND_TRY 2
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern struct knetconfig *get_knconf(struct netconfig *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern void free_knconf(struct knetconfig *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern bool_t xdr_nfs_fsl_info(XDR *, struct nfs_fsl_info *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern struct netconfig *get_netconfig(NCONF_HANDLE *, ushort_t, char *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern int setup_nb_parms(struct netconfig *, struct t_bind *, struct t_info *,
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow char *, int, bool_t, ushort_t, rpcprog_t, rpcvers_t, int);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern void cleanup_tli_parms(struct t_bind *, int);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern struct nfs_fsl_info *get_nfs4ref_info(char *, int, int);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern void free_nfs4ref_info(struct nfs_fsl_info *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern struct netbuf *get_server_addr(char *, rpcprog_t, rpcvers_t,
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow struct netconfig *, ushort_t, struct t_info *, caddr_t *,
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow bool_t, char *, enum clnt_stat *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlowextern struct netbuf *resolve_netconf(char *, rpcprog_t, rpcvers_t,
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow struct netconfig **, ushort_t, struct t_info *,
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow caddr_t *, bool_t, char *, enum clnt_stat *);
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow
2f172c55ef76964744bc62b4500ece87f3089b4dRobert Thurlow#endif /* _NFS_RESOLVE_H */