X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.h;h=2e4dbbc578ed370682ce1d72acdeaf9ec59275e1;hp=0f24a32b7a011c9df7c5a6e8eb9d1ccfaea2e757;hb=a786c016f0af6fa116ae2483d6261dbed009d87e;hpb=612141ad76b47cb3d7ae505795d6a1ca45b77201 diff --git a/utils/mount/network.h b/utils/mount/network.h index 0f24a32..2e4dbbc 100644 --- a/utils/mount/network.h +++ b/utils/mount/network.h @@ -21,12 +21,31 @@ * */ -#include "conn.h" +#include +#include + #include "mount.h" +#ifdef HAVE_RPCSVC_NFS_PROT_H +#include +#else +#include +#define nfsstat nfs_stat +#endif + #define MNT_SENDBUFSIZE (2048U) #define MNT_RECVBUFSIZE (1024U) +typedef struct { + char **hostname; + struct sockaddr_in saddr; + struct pmap pmap; +} clnt_addr_t; + +/* RPC call timeout values */ +static const struct timeval TIMEOUT = { 20, 0 }; +static const struct timeval RETRY_TIMEOUT = { 3, 0 }; + int probe_bothports(clnt_addr_t *, clnt_addr_t *); int nfs_gethostbyname(const char *, struct sockaddr_in *); int nfs_call_umount(clnt_addr_t *, dirpath *);