X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fnfsrpc.h;fp=support%2Finclude%2Fnfsrpc.h;h=543c35bc9fdc8901395c6ae378b46ec182ab8bc9;hp=097debb873aed39d90f2afff63ed6857f3883927;hb=8c94296bc84f3a204f2061c0391a1d2350e4f37e;hpb=41eb279c2f46ca020bc3b8d17811555f74b99d2e diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h index 097debb..543c35b 100644 --- a/support/include/nfsrpc.h +++ b/support/include/nfsrpc.h @@ -24,6 +24,7 @@ #define __NFS_UTILS_NFSRPC_H #include +#include /* * Conventional RPC program numbers @@ -54,13 +55,21 @@ extern rpcprog_t nfs_getrpcbyname(const rpcprog_t, const char *table[]); /* - * Acquire an RPC CLIENT * + * Acquire an RPC CLIENT * with an ephemeral source port */ extern CLIENT *nfs_get_rpcclient(const struct sockaddr *, const socklen_t, const unsigned short, const rpcprog_t, const rpcvers_t, struct timeval *); +/* + * Acquire an RPC CLIENT * with a privileged source port + */ +extern CLIENT *nfs_get_priv_rpcclient( const struct sockaddr *, + const socklen_t, const unsigned short, + const rpcprog_t, const rpcvers_t, + struct timeval *); + /* * Convert a socket address to a universal address */