4 #define SUNRPC_PORT 111
6 #define PROG_PORTMAP 100000
7 #define PROG_NFS 100003
8 #define PROG_MOUNT 100005
13 #define PORTMAP_GETPORT 3
15 #define MOUNT_ADDENTRY 1
16 #define MOUNT_UMOUNTALL 4
19 #define NFS_READLINK 5
25 #define NFSERR_NOENT 2
26 #define NFSERR_ACCES 13
27 #define NFSERR_ISDIR 21
28 #define NFSERR_INVAL 22
30 /* Block size used for NFS read accesses. A RPC reply packet (including all
31 * headers) must fit within a single Ethernet frame to avoid fragmentation.
32 * Chosen to be a power of two, as most NFS servers are optimized for this. */
33 #define NFS_READ_SIZE 1024
35 #define NFS_MAXLINKDEPTH 16
41 uint8_t data
[300]; /* longest RPC call must fit!!!! */