X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Finclude%2Fnfsrpc.h;h=a0b80e15ed5227535ba47e36866d0cfe93648788;hb=e0b66eaad419b466ecfac1b82d4802bb5fb676d0;hp=d6d4a1cf881571935c015b66e97394bd631e9d13;hpb=626010056efb7baa76b08b5e6572720e02e425b4;p=nfs-utils.git diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h index d6d4a1c..a0b80e1 100644 --- a/support/include/nfsrpc.h +++ b/support/include/nfsrpc.h @@ -15,8 +15,8 @@ * * 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 * */ @@ -26,6 +26,12 @@ #include #include +/* + * 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 */ @@ -58,16 +64,6 @@ static inline void nfs_clear_rpc_createerr(void) 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 */ @@ -170,4 +166,7 @@ extern int nfs_rpc_ping(const struct sockaddr *sap, 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 */