10#ifndef __PACKET_NFS_H__
11#define __PACKET_NFS_H__
13#include "packet-rpc.h"
15#define NFS_PROGRAM 100003
20#define NFS3_COOKIEVERFSIZE 8
21#define NFS3_CREATEVERFSIZE 8
22#define NFS3_WRITEVERFSIZE 8
37#define NFS4ERR_DENIED 10010
38#define NFS4ERR_CLID_INUSE 10017
39#define NFS4ERR_OFFLOAD_NO_REQS 10094
58#define NFS4_OP_ACCESS 3
59#define NFS4_OP_CLOSE 4
60#define NFS4_OP_COMMIT 5
61#define NFS4_OP_CREATE 6
62#define NFS4_OP_DELEGPURGE 7
63#define NFS4_OP_DELEGRETURN 8
64#define NFS4_OP_GETATTR 9
65#define NFS4_OP_GETFH 10
66#define NFS4_OP_LINK 11
67#define NFS4_OP_LOCK 12
68#define NFS4_OP_LOCKT 13
69#define NFS4_OP_LOCKU 14
70#define NFS4_OP_LOOKUP 15
71#define NFS4_OP_LOOKUPP 16
72#define NFS4_OP_NVERIFY 17
73#define NFS4_OP_OPEN 18
74#define NFS4_OP_OPENATTR 19
75#define NFS4_OP_OPEN_CONFIRM 20
76#define NFS4_OP_OPEN_DOWNGRADE 21
77#define NFS4_OP_PUTFH 22
78#define NFS4_OP_PUTPUBFH 23
79#define NFS4_OP_PUTROOTFH 24
80#define NFS4_OP_READ 25
81#define NFS4_OP_READDIR 26
82#define NFS4_OP_READLINK 27
83#define NFS4_OP_REMOVE 28
84#define NFS4_OP_RENAME 29
85#define NFS4_OP_RENEW 30
86#define NFS4_OP_RESTOREFH 31
87#define NFS4_OP_SAVEFH 32
88#define NFS4_OP_SECINFO 33
89#define NFS4_OP_SETATTR 34
90#define NFS4_OP_SETCLIENTID 35
91#define NFS4_OP_SETCLIENTID_CONFIRM 36
92#define NFS4_OP_VERIFY 37
93#define NFS4_OP_WRITE 38
94#define NFS4_OP_RELEASE_LOCKOWNER 39
96#define NFS4_OP_BACKCHANNEL_CTL 40
97#define NFS4_OP_BIND_CONN_TO_SESSION 41
98#define NFS4_OP_EXCHANGE_ID 42
99#define NFS4_OP_CREATE_SESSION 43
100#define NFS4_OP_DESTROY_SESSION 44
101#define NFS4_OP_FREE_STATEID 45
102#define NFS4_OP_GET_DIR_DELEGATION 46
103#define NFS4_OP_GETDEVINFO 47
104#define NFS4_OP_GETDEVLIST 48
105#define NFS4_OP_LAYOUTCOMMIT 49
106#define NFS4_OP_LAYOUTGET 50
107#define NFS4_OP_LAYOUTRETURN 51
108#define NFS4_OP_SECINFO_NO_NAME 52
109#define NFS4_OP_SEQUENCE 53
110#define NFS4_OP_SET_SSV 54
111#define NFS4_OP_TEST_STATEID 55
112#define NFS4_OP_WANT_DELEGATION 56
113#define NFS4_OP_DESTROY_CLIENTID 57
114#define NFS4_OP_RECLAIM_COMPLETE 58
116#define NFS4_OP_ALLOCATE 59
117#define NFS4_OP_COPY 60
118#define NFS4_OP_COPY_NOTIFY 61
119#define NFS4_OP_DEALLOCATE 62
120#define NFS4_OP_IO_ADVISE 63
121#define NFS4_OP_LAYOUTERROR 64
122#define NFS4_OP_LAYOUTSTATS 65
123#define NFS4_OP_OFFLOAD_CANCEL 66
124#define NFS4_OP_OFFLOAD_STATUS 67
125#define NFS4_OP_READ_PLUS 68
126#define NFS4_OP_SEEK 69
127#define NFS4_OP_WRITE_SAME 70
128#define NFS4_OP_CLONE 71
129#define NFS4_OP_GETXATTR 72
130#define NFS4_OP_SETXATTR 73
131#define NFS4_OP_LISTXATTRS 74
132#define NFS4_OP_REMOVEXATTR 75
133#define NFS4_LAST_OP 75
134#define NFS4_OP_ILLEGAL 10044
139#define NFS4_OP_CB_GETATTR 3
140#define NFS4_OP_CB_RECALL 4
141#define NFS4_OP_CB_LAYOUTRECALL 5
142#define NFS4_OP_CB_NOTIFY 6
143#define NFS4_OP_CB_PUSH_DELEG 7
144#define NFS4_OP_CB_RECALL_ANY 8
145#define NFS4_OP_CB_RECALLABLE_OBJ_AVAIL 9
146#define NFS4_OP_CB_RECALL_SLOT 10
147#define NFS4_OP_CB_SEQUENCE 11
148#define NFS4_OP_CB_WANTS_CANCELLED 12
149#define NFS4_OP_CB_NOTIFY_LOCK 13
150#define NFS4_OP_CB_NOTIFY_DEVICEID 14
151#define NFS4_OP_CB_OFFLOAD 15
152#define NFS4_OP_CB_ILLEGAL 10044
168#define EXCLUSIVE4_1 3
171#define NFS_ACCESS_MASK_READ 0x001
172#define NFS_ACCESS_MASK_LOOKUP 0x002
173#define NFS_ACCESS_MASK_MODIFY 0x004
174#define NFS_ACCESS_MASK_EXTEND 0x008
175#define NFS_ACCESS_MASK_DELETE 0x010
176#define NFS_ACCESS_MASK_EXECUTE 0x020
177#define NFS_ACCESS_MASK_XATTR_READ 0x040
178#define NFS_ACCESS_MASK_XATTR_WRITE 0x080
179#define NFS_ACCESS_MASK_XATTR_LIST 0x100
182#define LAYOUT4_NO_LAYOUT_TYPE 0
183#define LAYOUT4_NFSV4_1_FILES 1
184#define LAYOUT4_OSD2_OBJECTS 2
185#define LAYOUT4_BLOCK_VOLUME 3
186#define LAYOUT4_FLEX_FILES 4
187#define LAYOUT4_SCSI 5
189#define NFL4_UFLG_MASK 0x0000003F
190#define NFL4_UFLG_DENSE 0x00000001
191#define NFL4_UFLG_COMMIT_THRU_MDS 0x00000002
192#define NFL4_UFLG_STRIPE_UNIT_SIZE_MASK 0xFFFFFFC0
196#define GDD4_UNAVAIL 1
205extern bool nfs_file_name_snooping;
206extern void nfs_name_snoop_add_name(uint64_t
id,
tvbuff_t *tvb,
unsigned name_offset,
unsigned name_len,
207 unsigned parent_offset,
unsigned parent_len,
const char *name);
208extern bool nfs_fhandle_reqrep_matching;
216extern unsigned dissect_nfs2_fattr(
tvbuff_t *tvb,
unsigned offset,
proto_tree *tree,
const char* name);
218 proto_tree* tree, uint32_t amask, uint32_t rmask,
char mtype,
int version,
222extern int hf_nfs_status;
Definition packet_info.h:43
Definition packet-rpc.h:109
Internal structure representing a wmem-allocated string buffer.
Definition wmem_strbuf.h:38
Definition tvbuff-int.h:36