X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=support%2Finclude%2Fnfs%2Fnfs.h;h=00b00280fa0b87e18d5ef31989d481c50b6d30ec;hb=c7fa61e76f072d97a9bdb4a551aa2ba28e5818cc;hp=2cf6857ba5ef8729a9da5486ebd588e8051bb0c3;hpb=fde2ae7794047a698feeaf17963d690a1e660a80;p=nfs-utils.git diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index 2cf6857..00b0028 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -13,6 +13,9 @@ #define NFSD_MINVERS 2 #define NFSD_MAXVERS 4 +#define NFSD_MINMINORVERS4 1 +#define NFSD_MAXMINORVERS4 1 + struct nfs_fh_len { int fh_size; u_int8_t fh_handle[NFS3_FHSIZE]; @@ -39,13 +42,13 @@ struct nfs_fh_old { #define NFSCTL_GETFD 7 /* get an fh by path (used by mountd) */ #define NFSCTL_GETFS 8 /* get an fh by path with max size (used by mountd) */ -/* Above this is for lockd. */ -#define NFSCTL_LOCKD 0x10000 -#define LOCKDCTL_SVC NFSCTL_LOCKD - #define NFSCTL_VERUNSET(_cltbits, _v) ((_cltbits) &= ~(1 << ((_v) - 1))) +#define NFSCTL_UDPUNSET(_cltbits) ((_cltbits) &= ~(1 << (17 - 1))) +#define NFSCTL_TCPUNSET(_cltbits) ((_cltbits) &= ~(1 << (18 - 1))) #define NFSCTL_VERISSET(_cltbits, _v) ((_cltbits) & (1 << ((_v) - 1))) +#define NFSCTL_UDPISSET(_cltbits) ((_cltbits) & (1 << (17 - 1))) +#define NFSCTL_TCPISSET(_cltbits) ((_cltbits) & (1 << (18 - 1))) #define NFSCTL_ALLBITS (~0)