2 * conn.h -- Connection routines for NFS mount / umount code.
4 * 2006-06-06 Amit Gud <agud@redhat.com>
5 * - Moved code snippets here from util-linux/mount
11 #ifdef HAVE_RPCSVC_NFS_PROT_H
12 #include <rpcsvc/nfs_prot.h>
14 #include <linux/nfs.h>
15 #define nfsstat nfs_stat
18 #include <rpc/pmap_prot.h>
23 struct sockaddr_in saddr;
27 /* RPC call timeout values */
28 static const struct timeval TIMEOUT = { 20, 0 };
29 static const struct timeval RETRY_TIMEOUT = { 3, 0 };
31 int get_socket(struct sockaddr_in *, u_int, int, int);