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