X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fnfsrpc.h;h=d6d4a1cf881571935c015b66e97394bd631e9d13;hp=dff6af75159ca48e3729c5f81dccb8875b24d87f;hb=626010056efb7baa76b08b5e6572720e02e425b4;hpb=5600327322a78a3a803368c0fe4f923cf14a4cf7 diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h index dff6af7..d6d4a1c 100644 --- a/support/include/nfsrpc.h +++ b/support/include/nfsrpc.h @@ -89,6 +89,18 @@ extern CLIENT *nfs_get_priv_rpcclient( const struct sockaddr *, 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 */