diff options
Diffstat (limited to 'support/include/nfsrpc.h')
-rw-r--r-- | support/include/nfsrpc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/support/include/nfsrpc.h b/support/include/nfsrpc.h index b3cdb8c..dff6af7 100644 --- a/support/include/nfsrpc.h +++ b/support/include/nfsrpc.h @@ -59,6 +59,16 @@ static inline void nfs_clear_rpc_createerr(void) } /* + * 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 */ extern rpcprog_t nfs_getrpcbyname(const rpcprog_t, const char *table[]); |