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