removed some gcc warnings (hopefully)
[obnox/wireshark/wip.git] / epan / dissectors / packet-afs-defs.h
1 /* packet-afs-defs.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$
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
35 static const value_string fs_req[] = {
36         { 130,          "fetch-data" },
37         { 131,          "fetch-acl" },
38         { 132,          "fetch-status" },
39         { 133,          "store-data" },
40         { 134,          "store-acl" },
41         { 135,          "store-status" },
42         { 136,          "remove-file" },
43         { 137,          "create-file" },
44         { 138,          "rename" },
45         { 139,          "symlink" },
46         { 140,          "link" },
47         { 141,          "makedir" },
48         { 142,          "rmdir" },
49         { 143,          "old-set-lock" },
50         { 144,          "old-extend-lock" },
51         { 145,          "old-release-lock" },
52         { 146,          "get-stats" },
53         { 147,          "give-up-callbacks" },
54         { 148,          "get-volume-info" },
55         { 149,          "get-volume-status" },
56         { 150,          "set-volume-status" },
57         { 151,          "get-root-volume" },
58         { 152,          "check-token" },
59         { 153,          "get-time" },
60         { 154,          "nget-volume-info" },
61         { 155,          "bulk-status" },
62         { 156,          "set-lock" },
63         { 157,          "extend-lock" },
64         { 158,          "release-lock" },
65         { 159,          "xstats-version" },
66         { 160,          "get-xstats" },
67         { 161,          "dfs-lookup" },
68         { 162,          "dfs-flushcps" },
69         { 163,          "dfs-symlink" },
70         { 220,          "residency" },
71         { 65536,        "inline-bulk-status" },
72         { 65537,        "fetch-data-64" },
73         { 65538,        "store-data-64" },
74         { 65539,        "give-up-all-callbacks" },
75         { 65540,        "get-capabilities" },
76         { 0,            NULL },
77 };
78
79 static const value_string cb_req[] = {
80         { 204,          "callback" },
81         { 205,          "init-callback-state" },
82         { 206,          "probe" },
83         { 207,          "get-lock" },
84         { 208,          "get-ce" },
85         { 209,          "xstats-version" },
86         { 210,          "get-xstats" },
87         { 211,          "init-callback-state2" },
88         { 212,          "who-are-you" },
89         { 213,          "init-callback-state3" },
90         { 214,          "probeuuid" },
91         { 215,          "get-server-prefs" },
92         { 216,          "get-cellservdb" },
93         { 217,          "get-local-cell" },
94         { 218,          "get-cache-config" },
95         { 65536,        "get-ce-64" },
96         { 65537,        "get-cell-by-num" },
97         { 65538,        "get-capabilities" },
98         { 0,            NULL },
99 };
100
101 static const value_string prot_req[] = {
102         { 500,          "new-user" },
103         { 501,          "where-is-it" },
104         { 502,          "dump-entry" },
105         { 503,          "add-to-group" },
106         { 504,          "name-to-id" },
107         { 505,          "id-to-name" },
108         { 506,          "delete" },
109         { 507,          "remove-from-group" },
110         { 508,          "get-cps" },
111         { 509,          "new-entry" },
112         { 510,          "list-max" },
113         { 511,          "set-max" },
114         { 512,          "list-entry" },
115         { 513,          "change-entry" },
116         { 514,          "list-elements" },
117         { 515,          "is-member-of" },
118         { 516,          "set-fld-sentry" },
119         { 517,          "list-owned" },
120         { 518,          "get-cps2" },
121         { 519,          "get-host-cps" },
122         { 520,          "update-entry" },
123         { 521,          "list-entries" },
124         { 0,            NULL },
125 };
126
127 static const value_string vldb_req[] = {
128         { 501,          "create-entry" },
129         { 502,          "delete-entry" },
130         { 503,          "get-entry-by-id" },
131         { 504,          "get-entry-by-name" },
132         { 505,          "get-new-volume-id" },
133         { 506,          "replace-entry" },
134         { 507,          "update-entry" },
135         { 508,          "set-lock" },
136         { 509,          "release-lock" },
137         { 510,          "list-entry" },
138         { 511,          "list-attributes" },
139         { 512,          "linked-list" },
140         { 513,          "get-stats" },
141         { 514,          "probe" },
142         { 515,          "get-addrs" },
143         { 516,          "change-addr" },
144         { 517,          "create-entry-n" },
145         { 518,          "get-entry-by-id-n" },
146         { 519,          "get-entry-by-name-n" },
147         { 520,          "replace-entry-n" },
148         { 521,          "list-entry-n" },
149         { 522,          "list-attrib-n" },
150         { 523,          "linked-list-n" },
151         { 524,          "update-entry-by-name" },
152         { 525,          "create-entry-u" },
153         { 526,          "get-entry-by-id-u" },
154         { 527,          "get-entry-by-name-u" },
155         { 528,          "replace-entry-u" },
156         { 529,          "list-entry-u" },
157         { 530,          "list-attrib-u" },
158         { 531,          "linked-list-u" },
159         { 532,          "regaddr" },
160         { 533,          "get-addrs-u" },
161         { 534,          "list-attrib-n2" },
162         { 0,            NULL },
163 };
164
165 static const value_string kauth_req[] = {
166         { 1,            "auth-old" },
167         { 21,           "authenticate" },
168         { 22,           "authenticate-v2" },
169         { 2,            "change-pw" },
170         { 3,            "get-ticket-old" },
171         { 23,           "get-ticket" },
172         { 4,            "set-pw" },
173         { 5,            "set-fields" },
174         { 6,            "create-user" },
175         { 7,            "delete-user" },
176         { 8,            "get-entry" },
177         { 9,            "list-entry" },
178         { 10,           "get-stats" },
179         { 11,           "debug" },
180         { 12,           "get-pw" },
181         { 13,           "get-random-key" },
182         { 14,           "unlock" },
183         { 15,           "lock-status" },
184         { 0,            NULL },
185 };
186
187 static const value_string vol_req[] = {
188         { 100,          "create-volume" },
189         { 101,          "delete-volume" },
190         { 102,          "restore" },
191         { 103,          "forward" },
192         { 104,          "end-trans" },
193         { 105,          "clone" },
194         { 106,          "set-flags" },
195         { 107,          "get-flags" },
196         { 108,          "trans-create" },
197         { 109,          "dump" },
198         { 110,          "get-nth-volume" },
199         { 111,          "set-forwarding" },
200         { 112,          "get-name" },
201         { 113,          "get-status" },
202         { 114,          "sig-restore" },
203         { 115,          "list-partitions" },
204         { 116,          "list-volumes" },
205         { 117,          "set-id-types" },
206         { 118,          "monitor" },
207         { 119,          "partition-info" },
208         { 120,          "reclone" },
209         { 121,          "list-one-volume" },
210         { 122,          "nuke" },
211         { 123,          "set-date" },
212         { 124,          "x-list-volumes" },
213         { 125,          "x-list-one-volume" },
214         { 126,          "set-info" },
215         { 127,          "x-list-partitions" },
216         { 128,          "forward-multiple" },
217         { 65536,        "convert-ro" },
218         { 65537,        "getsize" },
219         { 0,            NULL },
220 };
221
222 static const value_string bos_req[] = {
223         { 80,           "create-bnode" },
224         { 81,           "delete-bnode" },
225         { 82,           "set-status" },
226         { 83,           "get-status" },
227         { 84,           "enumerate-instance" },
228         { 85,           "get-instance-info" },
229         { 86,           "get-instance-parm" },
230         { 87,           "add-superuser" },
231         { 88,           "delete-superuser" },
232         { 89,           "list-superusers" },
233         { 90,           "list-keys" },
234         { 91,           "add-key" },
235         { 92,           "delete-key" },
236         { 93,           "set-cell-name" },
237         { 94,           "get-cell-name" },
238         { 95,           "get-cell-host" },
239         { 96,           "add-cell-host" },
240         { 97,           "delete-cell-host" },
241         { 98,           "set-t-status" },
242         { 99,           "shutdown-all" },
243         { 100,          "restart-all" },
244         { 101,          "startup-all" },
245         { 102,          "set-noauth-flag" },
246         { 103,          "re-bozo" },
247         { 104,          "restart" },
248         { 105,          "install" },
249         { 106,          "uninstall" },
250         { 107,          "get-dates" },
251         { 108,          "exec" },
252         { 109,          "prune" },
253         { 110,          "set-restart-time" },
254         { 111,          "get-restart-time" },
255         { 112,          "get-log" },
256         { 113,          "wait-all" },
257         { 114,          "get-instance-strings" },
258         { 115,          "get-restricted" },
259         { 116,          "set restricted" },
260         { 0,            NULL },
261 };
262
263 static const value_string update_req[] = {
264         { 1,            "fetch-file" },
265         { 2,            "fetch-info" },
266         { 0,            NULL },
267 };
268
269 static const value_string rmtsys_req[] = {
270         { 1,            "setpag" },
271         { 2,            "pioctl" },
272         { 0,            NULL },
273 };
274
275 static const value_string backup_req[] = {
276         { 100,          "perform-dump" },
277         { 101,          "perform-restore" },
278         { 102,          "check-dump" },
279         { 103,          "abort-dump" },
280         { 104,          "wait-for-dump" },
281         { 105,          "end-dump" },
282         { 106,          "get-tm-info" },
283         { 107,          "label-tape" },
284         { 108,          "scan-nodes" },
285         { 109,          "read-label" },
286         { 110,          "scan-dumps" },
287         { 111,          "get-tc-info" },
288         { 112,          "save-database" },
289         { 113,          "restore-database" },
290         { 114,          "get-status" },
291         { 115,          "request-abort" },
292         { 116,          "end-status" },
293         { 117,          "scan-status" },
294         { 118,          "delete-dump" },
295         { 0,            NULL },
296 };
297
298 static const value_string ubik_req[] = {
299         { 10000,        "vote-beacon" },
300         { 10001,        "vote-debug-old" },
301         { 10002,        "vote-sdebug-old" },
302         { 10003,        "vote-getsyncsite" },
303         { 10004,        "vote-debug" },
304         { 10005,        "vote-sdebug" },
305         { 10006,        "vote-xdebug" },
306         { 10007,        "vote-xsdebug" },
307         { 20000,        "disk-begin" },
308         { 20001,        "disk-commit" },
309         { 20002,        "disk-lock" },
310         { 20003,        "disk-write" },
311         { 20004,        "disk-getversion" },
312         { 20005,        "disk-getfile" },
313         { 20006,        "disk-sendfile" },
314         { 20007,        "disk-abort" },
315         { 20008,        "disk-releaselocks" },
316         { 20009,        "disk-truncate" },
317         { 20010,        "disk-probe" },
318         { 20011,        "disk-writev" },
319         { 20012,        "disk-interfaceaddr" },
320         { 20013,        "disk-setversion" },
321         { 0,            NULL },
322 };
323
324 static const value_string cb_types[] = {
325         { CB_TYPE_EXCLUSIVE, "exclusive" },
326         { CB_TYPE_SHARED, "shared" },
327         { CB_TYPE_DROPPED, "dropped" },
328         { 0, NULL },
329 };
330
331 static const value_string afs_errors[] = {
332         /* VOL Errors */
333         { 363520, "ID Exists"},
334         { 363521, "IO Error"},
335         { 363522, "Name Exists"},
336         { 363523, "Create Failed"},
337         { 363524, "Entry Not Found"},
338         { 363525, "Empty"},
339         { 363526, "Entry Deleted"},
340         { 363527, "Bad Name"},
341         { 363528, "Bad Index"},
342         { 363529, "Bad Volume Type"},
343         { 363530, "Bad Partition"},
344         { 363531, "Bad Server"},
345         { 363532, "Bad Replicate Server"},
346         { 363533, "No Replicate Server"},
347         { 363534, "Duplicate Replicate Server"},
348         { 363535, "ReadWrite Volume Not Found"},
349         { 363536, "Bad Reference Count"},
350         { 363537, "Size Exceeded"},
351         { 363538, "Bad Entry"},
352         { 363539, "Bad Volume ID Bump"},
353         { 363540, "Already has edit"},
354         { 363541, "Entry Locked"},
355         { 363542, "Bad Volume Operation"},
356         { 363543, "Bad Rel Lock Type"},
357         { 363544, "Rerelease"},
358         { 363545, "Bad Server"},
359         { 363546, "Permission Denied"},
360         { 363547, "Out of Memory"},
361
362         /* KAUTH Errors */
363         { 180480, "Database Inconsistent"},
364         { 180481, "Exists"},
365         { 180482, "IO"},
366         { 180483, "Create Failed"},
367         { 180484, "noent"},
368         { 180485, "Empty"},
369         { 180486, "Bad Name"},
370         { 180487, "Bad Index"},
371         { 180488, "No auth"},
372         { 180489, "Answer too long"},
373         { 180490, "Bad Request"},
374         { 180491, "Old Interface"},
375         { 180492, "Bad Argument"},
376         { 180493, "Bad Command"},
377         { 180494, "No keys"},
378         { 180495, "Read PW"},
379         { 180496, "Bad key"},
380         { 180497, "Ubik Init"},
381         { 180498, "Ubik Call"},
382         { 180499, "Bad Protocol"},
383         { 180500, "No cells"},
384         { 180501, "No cell"},
385         { 180502, "Too many ubiks"},
386         { 180503, "Too many keys"},
387         { 180504, "Bad ticket"},
388         { 180505, "Unknown Key"},
389         { 180506, "Key Cache Invalid"},
390         { 180507, "Bad Server"},
391         { 180508, "Bad User"},
392         { 180509, "Bad CPW"},
393         { 180510, "Bad Create"},
394         { 180511, "No ticket"},
395         { 180512, "Assoc user"},
396         { 180513, "Not special"},
397         { 180514, "Clock skew too great"},
398         { 180515, "No recursion"},
399         { 180516, "RX failed"},
400         { 180517, "Null password"},
401         { 180518, "Internal error"},
402         { 180519, "Password expired"},
403         { 180520, "Reused"},
404         { 180521, "Too soon"},
405         { 180522, "Locked"},
406
407         /* PT Errors */
408         { 267264, "Exists"},
409         { 267265, "ID Exists"},
410         { 267266, "No IDs"},
411         { 267267, "DB Failed"},
412         { 267268, "No such entry"},
413         { 267269, "Permission denied"},
414         { 267270, "Not group"},
415         { 267271, "Not user"},
416         { 267272, "Bad name"},
417         { 267273, "Bad argument"},
418         { 267274, "No more"},
419         { 267275, "Bad DB"},
420         { 267276, "Group empty"},
421         { 267277, "Inconsistent"},
422         { 267278, "DB Address"},
423         { 267279, "Too many"},
424         { 267280, "No memory"},
425
426         /* Volume server errors */
427         { 1492325120, "Release error"},
428         { 1492325121, "No op"},
429         { 1492325122, "Read dump error"},
430         { 1492325123, "Dump error"},
431         { 1492325124, "Attach error"},
432         { 1492325125, "Illegal partition"},
433         { 1492325126, "Detach error"},
434         { 1492325127, "Bad access"},
435         { 1492325128, "VLDB error"},
436         { 1492325129, "Bad Name"},
437         { 1492325130, "Volume moved"},
438         { 1492325131, "Bad operation"},
439         { 1492325132, "Bad release"},
440         { 1492325133, "Volume busy"},
441         { 1492325134, "No memory"},
442         { 1492325135, "No volume"},
443         { 1492325136, "Multiple RW volumes"},
444         { 1492325137, "Failed operation"},
445
446         /* add more of these errors to decode the errcode responses */
447         { 0, NULL },
448 };
449
450 static const value_string port_types[] = {
451         { AFS_PORT_FS, "File Server" },
452         { AFS_PORT_CB, "Callback Server" },
453         { AFS_PORT_BOS, "BOS Server" },
454         { AFS_PORT_PROT, "Protection Server" },
455         { AFS_PORT_VLDB, "Volume Location Database Server" },
456         { AFS_PORT_KAUTH, "Kerberos Authentication Server" },
457         { AFS_PORT_ERROR, "Error Server" },
458         { AFS_PORT_VOL, "Volume Server" },
459         { AFS_PORT_RMTSYS, "Rmtsys? Server" },
460         { AFS_PORT_UPDATE, "Update? Server" },
461         { AFS_PORT_BACKUP, "Backup Server" },
462         { 0, NULL }
463 };
464
465 static const value_string port_types_short[] = {
466         { AFS_PORT_FS, "FS" },
467         { AFS_PORT_CB, "CB" },
468         { AFS_PORT_BOS, "BOS" },
469         { AFS_PORT_PROT, "PROT" },
470         { AFS_PORT_VLDB, "VLDB" },
471         { AFS_PORT_KAUTH, "KAUTH" },
472         { AFS_PORT_ERROR, "ERR" },
473         { AFS_PORT_VOL, "VOL" },
474         { AFS_PORT_RMTSYS, "RMT" },
475         { AFS_PORT_UPDATE, "UPD" },
476         { AFS_PORT_BACKUP, "BKUP" },
477         { 0, NULL }
478 };
479
480 static const value_string ubik_lock_types[] = {
481         { 1,            "read" },
482         { 2,            "write" },
483         { 3,            "wait" },
484         { 0,            NULL },
485 };
486
487 static const value_string xstat_collections[] = {
488         { 0,            "call counting & info" },
489         { 1,            "performance info" },
490         { 2,            "full performance info" },
491         { 0,            NULL },
492 };
493
494 static const value_string vice_lock_types[] = {
495         { 0,            "read" },
496         { 1,            "write" },
497         { 2,            "extend" },
498         { 3,            "release" },
499         { 0,            NULL },
500 };
501
502 static const value_string volume_types[] = {
503         { 0,            "read-write" },
504         { 1,            "read-only" },
505         { 2,            "backup" },
506         { 0xffffffff, "any" },
507         { 0,            NULL },
508 };
509
510 static int proto_afs = -1;
511 static int hf_afs_fs = -1;
512 static int hf_afs_cb = -1;
513 static int hf_afs_prot = -1;
514 static int hf_afs_vldb = -1;
515 static int hf_afs_kauth = -1;
516 static int hf_afs_vol = -1;
517 static int hf_afs_error = -1;
518 static int hf_afs_bos = -1;
519 static int hf_afs_update = -1;
520 static int hf_afs_rmtsys = -1;
521 static int hf_afs_ubik = -1;
522 static int hf_afs_backup = -1;
523
524 static int hf_afs_fs_opcode = -1;
525 static int hf_afs_cb_opcode = -1;
526 static int hf_afs_prot_opcode = -1;
527 static int hf_afs_vldb_opcode = -1;
528 static int hf_afs_kauth_opcode = -1;
529 static int hf_afs_vol_opcode = -1;
530 static int hf_afs_error_opcode = -1;
531 static int hf_afs_bos_opcode = -1;
532 static int hf_afs_update_opcode = -1;
533 static int hf_afs_rmtsys_opcode = -1;
534 static int hf_afs_ubik_opcode = -1;
535 static int hf_afs_backup_opcode = -1;
536
537 static int hf_afs_fs_fid_volume = -1;
538 static int hf_afs_fs_fid_vnode = -1;
539 static int hf_afs_fs_fid_uniqifier = -1;
540 static int hf_afs_fs_offset = -1;
541 static int hf_afs_fs_length = -1;
542 static int hf_afs_fs_flength = -1;
543 static int hf_afs_fs_offset64 = -1;
544 static int hf_afs_fs_length64 = -1;
545 static int hf_afs_fs_flength64 = -1;
546 static int hf_afs_fs_errcode = -1;
547 static int hf_afs_fs_data = -1;
548 static int hf_afs_fs_name = -1;
549 static int hf_afs_fs_oldname = -1;
550 static int hf_afs_fs_newname = -1;
551 static int hf_afs_fs_symlink_name = -1;
552 static int hf_afs_fs_symlink_content = -1;
553 static int hf_afs_fs_volid = -1;
554 static int hf_afs_fs_volname = -1;
555 static int hf_afs_fs_timestamp = -1;
556 static int hf_afs_fs_offlinemsg = -1;
557 static int hf_afs_fs_motd = -1;
558 static int hf_afs_fs_xstats_version = -1;
559 static int hf_afs_fs_xstats_timestamp = -1;
560 static int hf_afs_fs_xstats_clientversion = -1;
561 static int hf_afs_fs_xstats_collnumber = -1;
562 static int hf_afs_fs_cps_spare1 = -1;
563 static int hf_afs_fs_cps_spare2 = -1;
564 static int hf_afs_fs_cps_spare3 = -1;
565 static int hf_afs_fs_vicelocktype = -1;
566 static int hf_afs_fs_viceid = -1;
567 static int hf_afs_fs_ipaddr = -1;
568 static int hf_afs_fs_token = -1;
569
570 static int hf_afs_fs_status_anonymousaccess = -1;
571 static int hf_afs_fs_status_author = -1;
572 static int hf_afs_fs_status_calleraccess = -1;
573 static int hf_afs_fs_status_clientmodtime = -1;
574 static int hf_afs_fs_status_dataversion = -1;
575 static int hf_afs_fs_status_dataversionhigh = -1;
576 static int hf_afs_fs_status_filetype = -1;
577 static int hf_afs_fs_status_group = -1;
578 static int hf_afs_fs_status_interfaceversion = -1;
579 static int hf_afs_fs_status_length = -1;
580 static int hf_afs_fs_status_linkcount = -1;
581 static int hf_afs_fs_status_mask = -1;
582 static int hf_afs_fs_status_mask_fsync = -1;
583 static int hf_afs_fs_status_mask_setgroup = -1;
584 static int hf_afs_fs_status_mask_setmode = -1;
585 static int hf_afs_fs_status_mask_setmodtime = -1;
586 static int hf_afs_fs_status_mask_setowner = -1;
587 static int hf_afs_fs_status_mask_setsegsize = -1;
588 static int hf_afs_fs_status_mode = -1;
589 static int hf_afs_fs_status_owner = -1;
590 static int hf_afs_fs_status_parentunique = -1;
591 static int hf_afs_fs_status_parentvnode = -1;
592 static int hf_afs_fs_status_segsize = -1;
593 static int hf_afs_fs_status_servermodtime = -1;
594 static int hf_afs_fs_status_spare2 = -1;
595 static int hf_afs_fs_status_spare3 = -1;
596 static int hf_afs_fs_status_spare4 = -1;
597 static int hf_afs_fs_status_synccounter = -1;
598
599 static int hf_afs_fs_volsync_spare1 = -1;
600 static int hf_afs_fs_volsync_spare2 = -1;
601 static int hf_afs_fs_volsync_spare3 = -1;
602 static int hf_afs_fs_volsync_spare4 = -1;
603 static int hf_afs_fs_volsync_spare5 = -1;
604 static int hf_afs_fs_volsync_spare6 = -1;
605
606 static int hf_afs_fs_acl_datasize = -1;
607 static int hf_afs_fs_acl_count_negative = -1;
608 static int hf_afs_fs_acl_count_positive = -1;
609 static int hf_afs_fs_acl_entity = -1;
610 static int hf_afs_fs_acl_r = -1;
611 static int hf_afs_fs_acl_l = -1;
612 static int hf_afs_fs_acl_i = -1;
613 static int hf_afs_fs_acl_d = -1;
614 static int hf_afs_fs_acl_w = -1;
615 static int hf_afs_fs_acl_k = -1;
616 static int hf_afs_fs_acl_a = -1;
617
618 static int hf_afs_fs_callback_version = -1;
619 static int hf_afs_fs_callback_expires = -1;
620 static int hf_afs_fs_callback_type = -1;
621
622 static int hf_afs_bos_errcode = -1;
623 static int hf_afs_bos_type = -1;
624 static int hf_afs_bos_instance = -1;
625 static int hf_afs_bos_status = -1;
626 static int hf_afs_bos_statusdesc = -1;
627 static int hf_afs_bos_num = -1;
628 static int hf_afs_bos_size = -1;
629 static int hf_afs_bos_flags = -1;
630 static int hf_afs_bos_date = -1;
631 static int hf_afs_bos_content = -1;
632 static int hf_afs_bos_user = -1;
633 static int hf_afs_bos_key = -1;
634 static int hf_afs_bos_path = -1;
635 static int hf_afs_bos_file = -1;
636 static int hf_afs_bos_cmd = -1;
637 static int hf_afs_bos_error = -1;
638 static int hf_afs_bos_spare1 = -1;
639 static int hf_afs_bos_spare2 = -1;
640 static int hf_afs_bos_spare3 = -1;
641 static int hf_afs_bos_parm = -1;
642 static int hf_afs_bos_kvno = -1;
643 static int hf_afs_bos_cell = -1;
644 static int hf_afs_bos_host = -1;
645 static int hf_afs_bos_newtime = -1;
646 static int hf_afs_bos_baktime = -1;
647 static int hf_afs_bos_oldtime = -1;
648 static int hf_afs_bos_data = -1;
649 static int hf_afs_bos_keymodtime = -1;
650 static int hf_afs_bos_keychecksum = -1;
651 static int hf_afs_bos_keyspare2 = -1;
652
653 static int hf_afs_vldb_errcode = -1;
654 static int hf_afs_vldb_name = -1;
655 static int hf_afs_vldb_id = -1;
656 static int hf_afs_vldb_type = -1;
657 static int hf_afs_vldb_bump = -1;
658 static int hf_afs_vldb_index = -1;
659 static int hf_afs_vldb_nextindex = -1;
660 static int hf_afs_vldb_count = -1;
661 static int hf_afs_vldb_numservers = -1;
662 static int hf_afs_vldb_server = -1;
663 static int hf_afs_vldb_serveruuid = -1;
664 static int hf_afs_vldb_serveruniq = -1;
665 static int hf_afs_vldb_serverflags = -1;
666 static int hf_afs_vldb_serverip = -1;
667 static int hf_afs_vldb_partition = -1;
668 static int hf_afs_vldb_rovol = -1;
669 static int hf_afs_vldb_rwvol = -1;
670 static int hf_afs_vldb_bkvol = -1;
671 static int hf_afs_vldb_clonevol = -1;
672 static int hf_afs_vldb_flags = -1;
673 static int hf_afs_vldb_flags_rwexists = -1;
674 static int hf_afs_vldb_flags_roexists = -1;
675 static int hf_afs_vldb_flags_bkexists = -1;
676 static int hf_afs_vldb_flags_dfsfileset = -1;
677
678 static int hf_afs_vldb_spare1 = -1;
679 static int hf_afs_vldb_spare2 = -1;
680 static int hf_afs_vldb_spare3 = -1;
681 static int hf_afs_vldb_spare4 = -1;
682 static int hf_afs_vldb_spare5 = -1;
683 static int hf_afs_vldb_spare6 = -1;
684 static int hf_afs_vldb_spare7 = -1;
685 static int hf_afs_vldb_spare8 = -1;
686 static int hf_afs_vldb_spare9 = -1;
687
688 static int hf_afs_kauth_errcode = -1;
689 static int hf_afs_kauth_princ = -1;
690 static int hf_afs_kauth_realm = -1;
691 static int hf_afs_kauth_domain = -1;
692 static int hf_afs_kauth_kvno = -1;
693 static int hf_afs_kauth_name = -1;
694 static int hf_afs_kauth_data = -1;
695
696 static int hf_afs_vol_errcode = -1;
697 static int hf_afs_vol_count = -1;
698 static int hf_afs_vol_id = -1;
699 static int hf_afs_vol_name = -1;
700
701 static int hf_afs_cb_errcode = -1;
702 static int hf_afs_cb_callback_version = -1;
703 static int hf_afs_cb_callback_type = -1;
704 static int hf_afs_cb_callback_expires = -1;
705 static int hf_afs_cb_fid_volume = -1;
706 static int hf_afs_cb_fid_vnode = -1;
707 static int hf_afs_cb_fid_uniqifier = -1;
708
709 static int hf_afs_prot_errcode = -1;
710 static int hf_afs_prot_name = -1;
711 static int hf_afs_prot_id = -1;
712 static int hf_afs_prot_count = -1;
713 static int hf_afs_prot_oldid = -1;
714 static int hf_afs_prot_newid = -1;
715 static int hf_afs_prot_pos = -1;
716 static int hf_afs_prot_flag = -1;
717 static int hf_afs_prot_uid = -1;
718 static int hf_afs_prot_gid = -1;
719 static int hf_afs_prot_maxuid = -1;
720 static int hf_afs_prot_maxgid = -1;
721
722 static int hf_afs_backup_errcode = -1;
723
724 static int hf_afs_ubik_errcode = -1;
725 static int hf_afs_ubik_version_epoch = -1;
726 static int hf_afs_ubik_version_counter = -1;
727 static int hf_afs_ubik_votestart = -1;
728 static int hf_afs_ubik_state = -1;
729 static int hf_afs_ubik_site = -1;
730 static int hf_afs_ubik_interface = -1;
731 static int hf_afs_ubik_file = -1;
732 static int hf_afs_ubik_pos = -1;
733 static int hf_afs_ubik_length = -1;
734 static int hf_afs_ubik_locktype = -1;
735 static int hf_afs_ubik_voteend = -1;
736 static int hf_afs_ubik_votetype = -1;
737
738 static int hf_afs_ubik_now = -1;
739 static int hf_afs_ubik_lastyestime = -1;
740 static int hf_afs_ubik_lastyeshost = -1;
741 static int hf_afs_ubik_lastyesstate = -1;
742 static int hf_afs_ubik_lastyesclaim = -1;
743 static int hf_afs_ubik_lowesthost = -1;
744 static int hf_afs_ubik_lowesttime = -1;
745 static int hf_afs_ubik_synchost = -1;
746 static int hf_afs_ubik_synctime = -1;
747 static int hf_afs_ubik_amsyncsite = -1;
748 static int hf_afs_ubik_syncsiteuntil = -1;
749 static int hf_afs_ubik_nservers = -1;
750 static int hf_afs_ubik_lockedpages = -1;
751 static int hf_afs_ubik_writelockedpages = -1;
752 static int hf_afs_ubik_activewrite = -1;
753 static int hf_afs_ubik_tidcounter = -1;
754 static int hf_afs_ubik_anyreadlocks = -1;
755 static int hf_afs_ubik_anywritelocks = -1;
756 static int hf_afs_ubik_recoverystate = -1;
757 static int hf_afs_ubik_currenttrans = -1;
758 static int hf_afs_ubik_writetrans = -1;
759 static int hf_afs_ubik_epochtime = -1;
760 static int hf_afs_ubik_isclone = -1;
761 static int hf_afs_ubik_addr = -1;
762 static int hf_afs_ubik_lastvotetime = -1;
763 static int hf_afs_ubik_lastbeaconsent = -1;
764 static int hf_afs_ubik_lastvote = -1;
765 static int hf_afs_ubik_currentdb = -1;
766 static int hf_afs_ubik_beaconsincedown = -1;
767 static int hf_afs_ubik_up = -1;
768 static int hf_afs_repframe = -1;
769 static int hf_afs_reqframe = -1;
770 static int hf_afs_time = -1;
771
772 static gint ett_afs = -1;
773 static gint ett_afs_op = -1;
774 static gint ett_afs_acl = -1;
775 static gint ett_afs_fid = -1;
776 static gint ett_afs_callback = -1;
777 static gint ett_afs_ubikver = -1;
778 static gint ett_afs_status = -1;
779 static gint ett_afs_status_mask = -1;
780 static gint ett_afs_volsync = -1;
781 static gint ett_afs_volumeinfo = -1;
782 static gint ett_afs_vicestat = -1;
783 static gint ett_afs_vldb_flags = -1;