*
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 021110-1307, USA.
+ * Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 0211-1301 USA
*
*/
#include <rpc/types.h>
#include <rpc/clnt.h>
+/*
+ * IANA does not define an IP protocol number for RDMA transports.
+ * Choose an arbitrary value we can use locally.
+ */
+#define NFSPROTO_RDMA (3939)
+
/*
* Conventional RPC program numbers
*/
memset(&rpc_createerr, 0, sizeof(rpc_createerr));
}
-/*
- * Extract port value from a socket address
- */
-extern uint16_t nfs_get_port(const struct sockaddr *);
-
-/*
- * Set port value in a socket address
- */
-extern void nfs_set_port(struct sockaddr *, const uint16_t);
-
/*
* Look up an RPC program name in /etc/rpc
*/
const rpcprog_t, const rpcvers_t,
struct timeval *);
+/*
+ * Convert a netid to a protocol number and protocol family
+ */
+extern int nfs_get_proto(const char *netid, sa_family_t *family,
+ unsigned long *protocol);
+
+/*
+ * Convert a protocol family and protocol name to a netid
+ */
+extern char *nfs_get_netid(const sa_family_t family,
+ const unsigned long protocol);
+
/*
* Convert a socket address to a universal address
*/
const unsigned short protocol,
const struct timeval *timeout);
-#endif /* __NFS_UTILS_NFSRPC_H */
+/* create AUTH_SYS handle with no supplemental groups */
+extern AUTH * nfs_authsys_create(void);
+
+#endif /* !__NFS_UTILS_NFSRPC_H */