finished up structure for fs replies, though macros still need implemented
[obnox/wireshark/wip.git] / packet-afs-register-info.h
1 /* packet-afs-register-info.h
2  * Routines for AFS packet dissection
3  * Copyright 1999, Nathan Neulinger <nneul@umr.edu>
4  * Based on routines from tcpdump patches by
5  *   Ken Hornstein <kenh@cmf.nrl.navy.mil>
6  * Portions based on information retrieved from the RX definitions
7  *   in Arla, the free AFS client at http://www.stacken.kth.se/project/arla/
8  * Portions based on information/specs retrieved from the OpenAFS sources at
9  *   www.openafs.org, Copyright IBM. 
10  *
11  * $Id: packet-afs-register-info.h,v 1.2 2000/11/03 18:37:24 nneul Exp $
12  *
13  * Ethereal - Network traffic analyzer
14  * By Gerald Combs <gerald@zing.org>
15  * Copyright 1998 Gerald Combs
16  *
17  * Copied from packet-tftp.c
18  *
19  * This program is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU General Public License
21  * as published by the Free Software Foundation; either version 2
22  * of the License, or (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program; if not, write to the Free Software
31  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
32  */
33
34 { &hf_afs_fs, { "File Server", "afs.fs", 
35         FT_BOOLEAN, BASE_NONE, 0, 0, "File Server" }},
36 { &hf_afs_cb, { "Callback", "afs.cb", 
37         FT_BOOLEAN, BASE_NONE, 0, 0, "Callback" }},
38 { &hf_afs_prot, { "Protection", "afs.prot", 
39         FT_BOOLEAN, BASE_NONE, 0, 0, "Protection Server" }},
40 { &hf_afs_vldb, { "VLDB", "afs.vldb", 
41         FT_BOOLEAN, BASE_NONE, 0, 0, "Volume Location Database Server" }},
42 { &hf_afs_kauth, { "KAuth", "afs.kauth", 
43         FT_BOOLEAN, BASE_NONE, 0, 0, "Kerberos Auth Server" }},
44 { &hf_afs_vol, { "Volume Server", "afs.vol", 
45         FT_BOOLEAN, BASE_NONE, 0, 0, "Volume Server" }},
46 { &hf_afs_error, { "Error", "afs.error", 
47         FT_BOOLEAN, BASE_NONE, 0, 0, "Error" }},
48 { &hf_afs_bos, { "BOS", "afs.bos", 
49         FT_BOOLEAN, BASE_NONE, 0, 0, "Basic Oversee Server" }},
50 { &hf_afs_update, { "Update", "afs.update", 
51         FT_BOOLEAN, BASE_NONE, 0, 0, "Update Server" }},
52 { &hf_afs_rmtsys, { "Rmtsys", "afs.rmtsys", 
53         FT_BOOLEAN, BASE_NONE, 0, 0, "Rmtsys" }},
54 { &hf_afs_ubik, { "Ubik", "afs.ubik", 
55         FT_BOOLEAN, BASE_NONE, 0, 0, "Ubik" }},
56 { &hf_afs_backup, { "Backup", "afs.backup", 
57         FT_BOOLEAN, BASE_NONE, 0, 0, "Backup Server" }},
58
59 { &hf_afs_fs_opcode, { "Operation", "afs.fs.opcode", 
60         FT_UINT32, BASE_DEC,
61         VALS(fs_req), 0, "Operation" }},
62 { &hf_afs_cb_opcode, { "Operation", "afs.cb.opcode", 
63         FT_UINT32, BASE_DEC,
64         VALS(cb_req), 0, "Operation" }},
65 { &hf_afs_prot_opcode, { "Operation", "afs.prot.opcode", 
66         FT_UINT32, BASE_DEC,
67         VALS(prot_req), 0, "Operation" }},
68 { &hf_afs_vldb_opcode, { "Operation", "afs.vldb.opcode", 
69         FT_UINT32, BASE_DEC,
70         VALS(vldb_req), 0, "Operation" }},
71 { &hf_afs_kauth_opcode, { "Operation", "afs.kauth.opcode", 
72         FT_UINT32, BASE_DEC,
73         VALS(kauth_req), 0, "Operation" }},
74 { &hf_afs_vol_opcode, { "Operation", "afs.vol.opcode", 
75         FT_UINT32, BASE_DEC,
76         VALS(vol_req), 0, "Operation" }},
77 { &hf_afs_bos_opcode, { "Operation", "afs.bos.opcode", 
78         FT_UINT32, BASE_DEC,
79         VALS(bos_req), 0, "Operation" }},
80 { &hf_afs_update_opcode, { "Operation", "afs.update.opcode", 
81         FT_UINT32, BASE_DEC,
82         VALS(update_req), 0, "Operation" }},
83 { &hf_afs_rmtsys_opcode, { "Operation", "afs.rmtsys.opcode", 
84         FT_UINT32, BASE_DEC,
85         VALS(rmtsys_req), 0, "Operation" }},
86 { &hf_afs_error_opcode, { "Operation", "afs.error.opcode", 
87         FT_UINT32, BASE_DEC,
88         0, 0, "Operation" }},
89 { &hf_afs_backup_opcode, {
90         "Operation", "afs.backup.opcode", 
91         FT_UINT32, BASE_DEC,
92         VALS(backup_req), 0, "Operation" }},
93 { &hf_afs_ubik_opcode, {
94         "Operation", "afs.ubik.opcode", 
95         FT_UINT32, BASE_DEC,
96         VALS(ubik_req), 0, "Operation" }},
97
98
99 /* File Server Fields */
100 { &hf_afs_fs_fid_volume, { "FileID (Volume)", "afs.fs.fid.volume", 
101         FT_UINT32, BASE_DEC,
102         0, 0, "File ID (Volume)" }},
103 { &hf_afs_fs_fid_vnode, { "FileID (VNode)", "afs.fs.fid.vnode", 
104         FT_UINT32, BASE_DEC,
105         0, 0, "File ID (VNode)" }},
106 { &hf_afs_fs_fid_uniqifier, { "FileID (Uniqifier)", "afs.fs.fid.uniq", 
107         FT_UINT32, BASE_DEC,
108         0, 0, "File ID (Uniqifier)" }},
109 { &hf_afs_fs_offset, { "Offset", "afs.fs.offset", 
110         FT_UINT32, BASE_DEC,
111         0, 0, "Offset" }},
112 { &hf_afs_fs_length, { "Length", "afs.fs.length", 
113         FT_UINT32, BASE_DEC, 0, 0, "Length" }},
114 { &hf_afs_fs_flength, { "FLength", "afs.fs.flength", 
115         FT_UINT32, BASE_DEC, 0, 0, "FLength" }},
116 { &hf_afs_fs_errcode, { "Error Code", "afs.fs.errcode", 
117         FT_UINT32, BASE_DEC, VALS(afs_errors), 0, "Error Code" }},
118 { &hf_afs_fs_data, { "Data", "afs.fs.data", 
119         FT_BYTES, BASE_HEX, 0, 0, "Data" }},
120 { &hf_afs_fs_oldname, { "Old Name", "afs.fs.oldname", 
121         FT_STRING, BASE_HEX, 0, 0, "Old Name" }},
122 { &hf_afs_fs_newname, { "New Name", "afs.fs.newname", 
123         FT_STRING, BASE_HEX, 0, 0, "New Name" }},
124 { &hf_afs_fs_name, { "Name", "afs.fs.name", 
125         FT_STRING, BASE_HEX, 0, 0, "Name" }},
126 { &hf_afs_fs_symlink_name, { "Symlink Name", "afs.fs.symlink.name", 
127         FT_STRING, BASE_HEX, 0, 0, "Symlink Name" }},
128 { &hf_afs_fs_symlink_content, { "Symlink Content", "afs.fs.symlink.content", 
129         FT_STRING, BASE_HEX, 0, 0, "Symlink Content" }},
130 { &hf_afs_fs_volid, { "Volume ID", "afs.fs.volid", 
131         FT_UINT32, BASE_DEC, 0, 0, "Volume ID" }},
132 { &hf_afs_fs_volname, { "Volume Name", "afs.fs.volname", 
133         FT_STRING, BASE_HEX, 0, 0, "Volume Name" }},
134 { &hf_afs_fs_timestamp, { "Timestamp", "afs.fs.timestamp", 
135         FT_ABSOLUTE_TIME, BASE_DEC, 0, 0, "Timestamp" }},
136 { &hf_afs_fs_offlinemsg, { "Offline Message", "afs.fs.offlinemsg", 
137         FT_STRING, BASE_HEX, 0, 0, "Volume Name" }},
138 { &hf_afs_fs_motd, { "Message of the Day", "afs.fs.motd", 
139         FT_STRING, BASE_HEX, 0, 0, "Message of the Day" }},
140 { &hf_afs_fs_xstats_version, { "XStats Version", "afs.fs.xstats.version", 
141         FT_UINT32, BASE_DEC, 0, 0, "XStats Version" }},
142 { &hf_afs_fs_xstats_timestamp, { "XStats Timestamp", "afs.fs.xstats.timestamp", 
143         FT_UINT32, BASE_DEC, 0, 0, "XStats Timestamp" }},
144 { &hf_afs_fs_cps_spare2, { "CPS Spare2", "afs.fs.cps.spare2", 
145         FT_UINT32, BASE_DEC, 0, 0, "CPS Spare2" }},
146 { &hf_afs_fs_cps_spare3, { "CPS Spare3", "afs.fs.cps.spare3", 
147         FT_UINT32, BASE_DEC, 0, 0, "CPS Spare3" }},
148 { &hf_afs_fs_vicelocktype, { "Vice Lock Type", "afs.fs.vicelocktype", 
149         FT_UINT32, BASE_DEC, VALS(vice_lock_types), 0, "Vice Lock Type" }},
150                 
151 { &hf_afs_fs_status_mask, { "Mask", "afs.fs.status.mask", 
152         FT_UINT32, BASE_HEX, 0, 0, "Mask" }},
153 { &hf_afs_fs_status_mask_setmodtime, { "Set Modification Time", "afs.fs.status.mask.setmodtime", 
154         FT_UINT32, BASE_BIN, 0, 1, "Set Modification Time" }},
155 { &hf_afs_fs_status_mask_setowner, { "Set Owner", "afs.fs.status.mask.setowner", 
156         FT_UINT32, BASE_BIN, 0, 2, "Set Owner" }},
157 { &hf_afs_fs_status_mask_setgroup, { "Set Group", "afs.fs.status.mask.setgroup", 
158         FT_UINT32, BASE_BIN, 0, 4, "Set Group" }},
159 { &hf_afs_fs_status_mask_setmode, { "Set Mode", "afs.fs.status.mask.setmode", 
160         FT_UINT32, BASE_BIN, 0, 8, "Set Mode" }},
161 { &hf_afs_fs_status_mask_setsegsize, { "Set Segment Size", "afs.fs.status.mask.setsegsize", 
162         FT_UINT32, BASE_BIN, 0, 16, "Set Segment Size" }},
163 { &hf_afs_fs_status_mask_fsync, { "FSync", "afs.fs.status.mask.fsync", 
164         FT_UINT32, BASE_BIN, 0, 1024, "FSync" }},
165 { &hf_afs_fs_status_clientmodtime, { "Client Modification Time", "afs.fs.status.clientmodtime", 
166         FT_ABSOLUTE_TIME, BASE_DEC, 0, 0, "Client Modification Time" }},
167 { &hf_afs_fs_status_servermodtime, { "Server Modification Time", "afs.fs.status.servermodtime", 
168         FT_ABSOLUTE_TIME, BASE_DEC, 0, 0, "Server Modification Time" }},
169 { &hf_afs_fs_status_owner, { "Owner", "afs.fs.status.owner", 
170         FT_UINT32, BASE_DEC, 0, 0, "Owner" }},
171 { &hf_afs_fs_status_group, { "Group", "afs.fs.status.group", 
172         FT_UINT32, BASE_DEC, 0, 0, "Group" }},
173 { &hf_afs_fs_status_mode, { "Unix Mode", "afs.fs.status.mode", 
174         FT_UINT32, BASE_OCT, 0, 0, "Unix Mode" }},
175 { &hf_afs_fs_status_segsize, { "Segment Size", "afs.fs.status.segsize", 
176         FT_UINT32, BASE_DEC, 0, 0, "Segment Size" }},
177 { &hf_afs_fs_status_interfaceversion, { "Interface Version", "afs.fs.status.interfaceversion", 
178         FT_UINT32, BASE_DEC, 0, 0, "Interface Version" }},
179 { &hf_afs_fs_status_filetype, { "File Type", "afs.fs.status.filetype", 
180         FT_UINT32, BASE_DEC, 0, 0, "File Type" }},
181 { &hf_afs_fs_status_author, { "Author", "afs.fs.status.author", 
182         FT_UINT32, BASE_DEC, 0, 0, "Author" }},
183 { &hf_afs_fs_status_calleraccess, { "Caller Access", "afs.fs.status.calleraccess", 
184         FT_UINT32, BASE_DEC, 0, 0, "Caller Access" }},
185 { &hf_afs_fs_status_anonymousaccess, { "Anonymous Access", "afs.fs.status.anonymousaccess", 
186         FT_UINT32, BASE_DEC, 0, 0, "Anonymous Access" }},
187 { &hf_afs_fs_status_parentvnode, { "Parent VNode", "afs.fs.status.parentvnode", 
188         FT_UINT32, BASE_DEC, 0, 0, "Parent VNode" }},
189 { &hf_afs_fs_status_parentunique, { "Parent Unique", "afs.fs.status.parentunique", 
190         FT_UINT32, BASE_DEC, 0, 0, "Parent Unique" }},
191 { &hf_afs_fs_status_dataversion, { "Data Version", "afs.fs.status.dataversion", 
192         FT_UINT32, BASE_DEC, 0, 0, "Data Version" }},
193 { &hf_afs_fs_status_dataversionhigh, { "Data Version (High)", "afs.fs.status.dataversionhigh", 
194         FT_UINT32, BASE_DEC, 0, 0, "Data Version (High)" }},
195 { &hf_afs_fs_status_linkcount, { "Link Count", "afs.fs.status.linkcount", 
196         FT_UINT32, BASE_DEC, 0, 0, "Link Count" }},
197 { &hf_afs_fs_status_spare2, { "Spare 2", "afs.fs.status.spare2", 
198         FT_UINT32, BASE_DEC, 0, 0, "Spare 2" }},
199 { &hf_afs_fs_status_spare3, { "Spare 3", "afs.fs.status.spare3", 
200         FT_UINT32, BASE_DEC, 0, 0, "Spare 3" }},
201 { &hf_afs_fs_status_spare4, { "Spare 4", "afs.fs.status.spare4", 
202         FT_UINT32, BASE_DEC, 0, 0, "Spare 4" }},
203 { &hf_afs_fs_status_synccounter, { "Sync Counter", "afs.fs.status.synccounter", 
204         FT_UINT32, BASE_DEC, 0, 0, "Sync Counter" }},
205 { &hf_afs_fs_status_length, { "Length", "afs.fs.status.length", 
206         FT_UINT32, BASE_DEC, 0, 0, "Length" }},
207
208
209 { &hf_afs_fs_volsync_spare1, { "Spare 1", "afs.fs.volsync.spare1", 
210         FT_UINT32, BASE_DEC, 0, 0, "Spare 1" }},
211 { &hf_afs_fs_volsync_spare2, { "Spare 2", "afs.fs.volsync.spare2", 
212         FT_UINT32, BASE_DEC, 0, 0, "Spare 2" }},
213 { &hf_afs_fs_volsync_spare3, { "Spare 3", "afs.fs.volsync.spare3", 
214         FT_UINT32, BASE_DEC, 0, 0, "Spare 3" }},
215 { &hf_afs_fs_volsync_spare4, { "Spare 4", "afs.fs.volsync.spare4", 
216         FT_UINT32, BASE_DEC, 0, 0, "Spare 4" }},
217 { &hf_afs_fs_volsync_spare5, { "Spare 5", "afs.fs.volsync.spare5", 
218         FT_UINT32, BASE_DEC, 0, 0, "Spare 5" }},
219 { &hf_afs_fs_volsync_spare6, { "Spare 6", "afs.fs.volsync.spare6", 
220         FT_UINT32, BASE_DEC, 0, 0, "Spare 6" }},
221
222
223 { &hf_afs_fs_acl_count_positive, {
224         "ACL Count (Positive)", "afs.fs.acl.count.positive", 
225         FT_UINT32, BASE_DEC,
226         0, 0, "Number of Positive ACLs" }},
227 { &hf_afs_fs_acl_count_negative, {
228         "ACL Count (Negative)", "afs.fs.acl.count.negative", 
229         FT_UINT32, BASE_DEC,
230         0, 0, "Number of Negative ACLs" }},
231 { &hf_afs_fs_acl_datasize, {
232         "ACL Size", "afs.fs.acl.datasize", 
233         FT_UINT32, BASE_DEC,
234         0, 0, "ACL Data Size" }},
235 { &hf_afs_fs_acl_entity, {
236         "Entity (User/Group)", "afs.fs.acl.entity", 
237         FT_STRING, BASE_HEX,
238         0, 0, "ACL Entity (User/Group)" }},
239 { &hf_afs_fs_acl_r, {
240         "_R_ead", "afs.fs.acl.r", 
241         FT_UINT8, BASE_BIN,
242         0, PRSFS_READ, "Read" }},
243 { &hf_afs_fs_acl_l, {
244         "_L_ookup", "afs.fs.acl.l", 
245         FT_UINT8, BASE_BIN,
246         0, PRSFS_LOOKUP, "Lookup" }},
247 { &hf_afs_fs_acl_i, {
248         "_I_nsert", "afs.fs.acl.i", 
249         FT_UINT8, BASE_BIN,
250         0, PRSFS_INSERT, "Insert" }},
251 { &hf_afs_fs_acl_d, {
252         "_D_elete", "afs.fs.acl.d", 
253         FT_UINT8, BASE_BIN,
254         0, PRSFS_DELETE, "Delete" }},
255 { &hf_afs_fs_acl_w, {
256         "_W_rite", "afs.fs.acl.w", 
257         FT_UINT8, BASE_BIN,
258         0, PRSFS_WRITE, "Write" }},
259 { &hf_afs_fs_acl_k, {
260         "_L_ock", "afs.fs.acl.k", 
261         FT_UINT8, BASE_BIN,
262         0, PRSFS_LOCK, "Lock" }},
263 { &hf_afs_fs_acl_a, {
264         "_A_dminister", "afs.fs.acl.a", 
265         FT_UINT8, BASE_BIN,
266         0, PRSFS_ADMINISTER, "Administer" }},
267
268 { &hf_afs_fs_callback_version, { "Version", "afs.fs.callback.version", 
269         FT_UINT32, BASE_DEC,
270         0, 0, "Version" }},
271 { &hf_afs_fs_callback_expires, { "Expires", "afs.fs.callback.expires", 
272         FT_ABSOLUTE_TIME, BASE_DEC,
273         0, 0, "Expires" }},
274 { &hf_afs_fs_callback_type, { "Type", "afs.fs.callback.type", 
275         FT_UINT32, BASE_DEC,
276         VALS(cb_types), 0, "Type" }},
277
278 /* BOS Server Fields */
279 { &hf_afs_bos_errcode, {
280         "Error Code", "afs.bos.errcode", 
281         FT_UINT32, BASE_DEC,
282         VALS(afs_errors), 0, "Error Code" }},
283 { &hf_afs_bos_type, { "Type", "afs.bos.type", 
284         FT_STRING, BASE_HEX,
285         0, 0, "Type" }},
286 { &hf_afs_bos_content, { "Content", "afs.bos.content", 
287         FT_STRING, BASE_HEX,
288         0, 0, "Content" }},
289 { &hf_afs_bos_instance, { "Instance", "afs.bos.instance", 
290         FT_STRING, BASE_HEX,
291         0, 0, "Instance" }},
292 { &hf_afs_bos_status, { "Status", "afs.bos.status", 
293         FT_INT32, BASE_DEC,
294         0, 0, "Status" }},
295 { &hf_afs_bos_num, { "Number", "afs.bos.number", 
296         FT_UINT32, BASE_DEC,
297         0, 0, "Number" }},
298 { &hf_afs_bos_size, { "Size", "afs.bos.size", 
299         FT_UINT32, BASE_DEC,
300         0, 0, "Size" }},
301 { &hf_afs_bos_flags, { "Flags", "afs.bos.flags", 
302         FT_UINT32, BASE_DEC,
303         0, 0, "Flags" }},
304 { &hf_afs_bos_date, { "Date", "afs.bos.date", 
305         FT_UINT32, BASE_DEC,
306         0, 0, "Date" }},
307
308 /* KAUTH Server Fields */
309 { &hf_afs_kauth_errcode, { "Error Code", "afs.kauth.errcode", 
310         FT_UINT32, BASE_DEC,
311         VALS(afs_errors), 0, "Error Code" }},
312 { &hf_afs_kauth_princ, { "Principal", "afs.kauth.princ", 
313         FT_STRING, BASE_HEX,
314         0, 0, "Principal" }},
315 { &hf_afs_kauth_realm, { "Realm", "afs.kauth.realm", 
316         FT_STRING, BASE_HEX,
317         0, 0, "Realm" }},
318 { &hf_afs_kauth_domain, { "Domain", "afs.kauth.domain", 
319         FT_STRING, BASE_HEX,
320         0, 0, "Domain" }},
321 { &hf_afs_kauth_name, { "Name", "afs.kauth.name", 
322         FT_STRING, BASE_HEX,
323         0, 0, "Name" }},
324 { &hf_afs_kauth_data, { "Data", "afs.kauth.data", 
325         FT_BYTES, BASE_HEX,
326         0, 0, "Data" }},
327 { &hf_afs_kauth_kvno, { "Key Version Number", "afs.kauth.kvno", 
328         FT_UINT32, BASE_DEC,
329         0, 0, "Key Version Number" }},
330
331 /* VOL Server Fields */
332 { &hf_afs_vol_errcode, { "Error Code", "afs.vol.errcode", 
333         FT_UINT32, BASE_DEC,
334         VALS(afs_errors), 0, "Error Code" }},
335 { &hf_afs_vol_id, { "Volume ID", "afs.vol.id", 
336         FT_UINT32, BASE_DEC,
337         0, 0, "Volume ID" }},
338 { &hf_afs_vol_count, { "Volume Count", "afs.vol.count", 
339         FT_UINT32, BASE_DEC,
340         0, 0, "Volume Count" }},
341 { &hf_afs_vol_name, { "Volume Name", "afs.vol.name", 
342         FT_STRING, BASE_HEX,
343         0, 0, "Volume Name" }},
344
345 /* VLDB Server Fields */
346 { &hf_afs_vldb_errcode, { "Error Code", "afs.vldb.errcode", 
347         FT_UINT32, BASE_DEC,
348         VALS(afs_errors), 0, "Error Code" }},
349 { &hf_afs_vldb_type, { "Volume Type", "afs.vldb.type", 
350         FT_UINT32, BASE_DEC,
351         VALS(volume_types), 0, "Volume Type" }},
352 { &hf_afs_vldb_id, { "Volume ID", "afs.vldb.id", 
353         FT_UINT32, BASE_DEC,
354         0, 0, "Volume ID" }},
355 { &hf_afs_vldb_bump, { "Bumped Volume ID", "afs.vldb.bump", 
356         FT_UINT32, BASE_DEC,
357         0, 0, "Bumped Volume ID" }},
358 { &hf_afs_vldb_index, { "Volume Index", "afs.vldb.index", 
359         FT_UINT32, BASE_DEC,
360         0, 0, "Volume Index" }},
361 { &hf_afs_vldb_count, { "Volume Count", "afs.vldb.count", 
362         FT_UINT32, BASE_DEC,
363         0, 0, "Volume Count" }},
364 { &hf_afs_vldb_numservers, { "Number of Servers", "afs.vldb.numservers", 
365         FT_UINT32, BASE_DEC,
366         0, 0, "Number of Servers" }},
367 { &hf_afs_vldb_nextindex, { "Next Volume Index", "afs.vldb.nextindex", 
368         FT_UINT32, BASE_DEC,
369         0, 0, "Next Volume Index" }},
370 { &hf_afs_vldb_rovol, { "Read-Only Volume ID", "afs.vldb.rovol", 
371         FT_UINT32, BASE_DEC,
372         0, 0, "Read-Only Volume ID" }},
373 { &hf_afs_vldb_rwvol, { "Read-Write Volume ID", "afs.vldb.rwvol", 
374         FT_UINT32, BASE_DEC,
375         0, 0, "Read-Only Volume ID" }},
376 { &hf_afs_vldb_bkvol, { "Backup Volume ID", "afs.vldb.bkvol", 
377         FT_UINT32, BASE_DEC,
378         0, 0, "Read-Only Volume ID" }},
379 { &hf_afs_vldb_name, { "Volume Name", "afs.vldb.name", 
380         FT_STRING, BASE_HEX,
381         0, 0, "Volume Name" }},
382 { &hf_afs_vldb_partition, { "Partition", "afs.vldb.partition", 
383         FT_STRING, BASE_HEX,
384         0, 0, "Partition" }},
385 { &hf_afs_vldb_server, { "Server", "afs.vldb.server", 
386         FT_IPv4, BASE_HEX,
387         0, 0, "Server" }},
388 { &hf_afs_vldb_serveruuid, { "Server UUID", "afs.vldb.serveruuid", 
389         FT_BYTES, BASE_HEX,
390         0, 0, "Server UUID" }},
391
392 /* BACKUP Server Fields */
393 { &hf_afs_backup_errcode, { "Error Code", "afs.backup.errcode", 
394         FT_UINT32, BASE_DEC,
395         VALS(afs_errors), 0, "Error Code" }},
396
397 /* CB Server Fields */
398 { &hf_afs_cb_errcode, { "Error Code", "afs.cb.errcode", 
399         FT_UINT32, BASE_DEC,
400         VALS(afs_errors), 0, "Error Code" }},
401 { &hf_afs_cb_callback_version, { "Version", "afs.cb.callback.version", 
402         FT_UINT32, BASE_DEC,
403         0, 0, "Version" }},
404 { &hf_afs_cb_callback_expires, { "Expires", "afs.cb.callback.expires", 
405         FT_ABSOLUTE_TIME, BASE_DEC,
406         0, 0, "Expires" }},
407 { &hf_afs_cb_callback_type, { "Type", "afs.cb.callback.type", 
408         FT_UINT32, BASE_DEC,
409         VALS(cb_types), 0, "Type" }},
410 { &hf_afs_cb_fid_volume, { "FileID (Volume)", "afs.cb.fid.volume", 
411         FT_UINT32, BASE_DEC,
412         0, 0, "File ID (Volume)" }},
413 { &hf_afs_cb_fid_vnode, { "FileID (VNode)", "afs.cb.fid.vnode", 
414         FT_UINT32, BASE_DEC,
415         0, 0, "File ID (VNode)" }},
416 { &hf_afs_cb_fid_uniqifier, { "FileID (Uniqifier)", "afs.cb.fid.uniq", 
417         FT_UINT32, BASE_DEC,
418         0, 0, "File ID (Uniqifier)" }},
419
420 /* PROT Server Fields */
421 { &hf_afs_prot_errcode, { "Error Code", "afs.prot.errcode", 
422         FT_UINT32, BASE_DEC,
423         VALS(afs_errors), 0, "Error Code" }},
424 { &hf_afs_prot_name, { "Name", "afs.prot.name", 
425         FT_STRING, BASE_HEX,
426         0, 0, "Name" }},
427 { &hf_afs_prot_id, { "ID", "afs.prot.id", 
428         FT_UINT32, BASE_DEC,
429         0, 0, "ID" }},
430 { &hf_afs_prot_oldid, { "Old ID", "afs.prot.oldid", 
431         FT_UINT32, BASE_DEC,
432         0, 0, "Old ID" }},
433 { &hf_afs_prot_newid, { "New ID", "afs.prot.newid", 
434         FT_UINT32, BASE_DEC,
435         0, 0, "New ID" }},
436 { &hf_afs_prot_gid, { "Group ID", "afs.prot.gid", 
437         FT_UINT32, BASE_DEC,
438         0, 0, "Group ID" }},
439 { &hf_afs_prot_uid, { "User ID", "afs.prot.uid", 
440         FT_UINT32, BASE_DEC,
441         0, 0, "User ID" }},
442 { &hf_afs_prot_count, { "Count", "afs.prot.count", 
443         FT_UINT32, BASE_DEC,
444         0, 0, "Count" }},
445 { &hf_afs_prot_maxgid, { "Maximum Group ID", "afs.prot.maxgid", 
446         FT_UINT32, BASE_DEC,
447         0, 0, "Maximum Group ID" }},
448 { &hf_afs_prot_maxuid, { "Maximum User ID", "afs.prot.maxuid", 
449         FT_UINT32, BASE_DEC,
450         0, 0, "Maximum User ID" }},
451 { &hf_afs_prot_pos, { "Position", "afs.prot.pos", 
452         FT_UINT32, BASE_DEC,
453         0, 0, "Position" }},
454 { &hf_afs_prot_flag, { "Flag", "afs.prot.flag", 
455         FT_UINT32, BASE_HEX,
456         0, 0, "Flag" }},
457
458 /* UBIK Fields */
459 { &hf_afs_ubik_errcode, { "Error Code", "afs.ubik.errcode", 
460         FT_UINT32, BASE_DEC,
461         VALS(afs_errors), 0, "Error Code" }},
462 { &hf_afs_ubik_version_epoch, { "Epoch", "afs.ubik.version.epoch", 
463         FT_ABSOLUTE_TIME, BASE_DEC,
464         0, 0, "Epoch" }},
465 { &hf_afs_ubik_votestart, { "Vote Started", "afs.ubik.votestart", 
466         FT_ABSOLUTE_TIME, BASE_DEC,
467         0, 0, "Vote Started" }},
468 { &hf_afs_ubik_voteend, { "Vote Ends", "afs.ubik.voteend", 
469         FT_ABSOLUTE_TIME, BASE_DEC,
470         0, 0, "Vote Ends" }},
471 { &hf_afs_ubik_version_counter, { "Counter", "afs.ubik.version.counter", 
472         FT_UINT32, BASE_DEC,
473         0, 0, "Counter" }},
474 { &hf_afs_ubik_file, { "File", "afs.ubik.file", 
475         FT_UINT32, BASE_DEC,
476         0, 0, "File" }},
477 { &hf_afs_ubik_pos, { "Position", "afs.ubik.position", 
478         FT_UINT32, BASE_DEC,
479         0, 0, "Position" }},
480 { &hf_afs_ubik_length, { "Length", "afs.ubik.length", 
481         FT_UINT32, BASE_DEC,
482         0, 0, "Length" }},
483 { &hf_afs_ubik_locktype, { "Lock Type", "afs.ubik.locktype", 
484         FT_UINT32, BASE_DEC,
485         VALS(ubik_lock_types), 0, "Lock Type" }},
486 { &hf_afs_ubik_votetype, { "Vote Type", "afs.ubik.votetype", 
487         FT_BOOLEAN, BASE_HEX,
488         0, 0, "Vote Type" }},
489 { &hf_afs_ubik_syncsite, { "Syncsite", "afs.ubik.syncsite", 
490         FT_BOOLEAN, BASE_HEX,
491         0, 0, "Syncsite" }},
492 { &hf_afs_ubik_site, { "Site", "afs.ubik.site", 
493         FT_IPv4, BASE_HEX, 0, 0, "Site" }},