X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Finclude%2Fnfs%2Fnfs.h;h=174c2dde0fc09c7d74219fadf744cf3e046fd1e1;hp=a64eb0a7fc0768191d425e2b6972d9071aa97000;hb=HEAD;hpb=10cfddc260b77025807906f72c8d98d9fe84a6c5 diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index a64eb0a..174c2dd 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -1,6 +1,8 @@ #ifndef _NFS_NFS_H #define _NFS_NFS_H +#include + #include #include #include @@ -13,9 +15,6 @@ #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]; @@ -53,6 +52,7 @@ struct nfs_fh_old { #define NFSCTL_UDPISSET(_cltbits) ((_cltbits) & NFSCTL_UDPBIT) #define NFSCTL_TCPISSET(_cltbits) ((_cltbits) & NFSCTL_TCPBIT) +#define NFSCTL_VERSET(_cltbits, _v) ((_cltbits) |= (1 << ((_v) - 1))) #define NFSCTL_UDPSET(_cltbits) ((_cltbits) |= NFSCTL_UDPBIT) #define NFSCTL_TCPSET(_cltbits) ((_cltbits) |= NFSCTL_TCPBIT)