Clean up white space.
[obnox/wireshark/wip.git] / packet-afs.h
1 /* packet-afs.h
2  * Definitions for packet disassembly structures and routines
3  *
4  * $Id: packet-afs.h,v 1.7 2001/05/27 05:00:17 guy Exp $
5  *
6  * Ethereal - Network traffic analyzer
7  * By Gerald Combs <gerald@ethereal.com>
8  * Copyright 1998 Gerald Combs
9  *
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifndef PACKET_AFS_H
27 #define PACKET_AFS_H
28
29 #define AFS_PORT_FS     7000
30 #define AFS_PORT_CB     7001
31 #define AFS_PORT_PROT   7002
32 #define AFS_PORT_VLDB   7003
33 #define AFS_PORT_KAUTH  7004
34 #define AFS_PORT_VOL    7005
35 #define AFS_PORT_ERROR  7006            /* Doesn't seem to be used */
36 #define AFS_PORT_BOS    7007
37 #define AFS_PORT_UPDATE 7008
38 #define AFS_PORT_RMTSYS 7009
39 #define AFS_PORT_BACKUP 7021
40
41 #ifndef AFSNAMEMAX
42 #define AFSNAMEMAX 256
43 #endif
44
45 #ifndef AFSOPAQUEMAX
46 #define AFSOPAQUEMAX 1024
47 #endif
48
49 #define PRNAMEMAX 64
50 #define VLNAMEMAX 65
51 #define KANAMEMAX 64
52 #define BOSNAMEMAX 256
53
54 #define PRSFS_READ              1 /* Read files */
55 #define PRSFS_WRITE             2 /* Write files */
56 #define PRSFS_INSERT            4 /* Insert files into a directory */
57 #define PRSFS_LOOKUP            8 /* Lookup files into a directory */
58 #define PRSFS_DELETE            16 /* Delete files */
59 #define PRSFS_LOCK              32 /* Lock files */
60 #define PRSFS_ADMINISTER        64 /* Change ACL's */
61
62 #define CB_TYPE_EXCLUSIVE 1
63 #define CB_TYPE_SHARED 2
64 #define CB_TYPE_DROPPED 3
65
66 #define OPCODE_LOW              0
67 #define OPCODE_HIGH     550 /* arbitrary, is just a fuzzy check for encrypted traffic */
68 #define VOTE_LOW        10000
69 #define VOTE_HIGH       10007
70 #define DISK_LOW        20000
71 #define DISK_HIGH       20013
72
73 #define FILE_TYPE_FILE 1
74 #define FILE_TYPE_DIR 2
75 #define FILE_TYPE_LINK 3
76
77 struct afs_header {
78         guint32 opcode;
79 };
80
81 struct afs_volsync {
82      guint32 spare1;
83      guint32 spare2;
84      guint32 spare3;
85      guint32 spare4;
86      guint32 spare5;
87      guint32 spare6;
88 };
89
90 struct afs_status {
91      guint32 InterfaceVersion;
92      guint32 FileType;
93      guint32 LinkCount;
94      guint32 Length;
95      guint32 DataVersion;
96      guint32 Author;
97      guint32 Owner;
98      guint32 CallerAccess;
99      guint32 AnonymousAccess;
100      guint32 UnixModeBits;
101      guint32 ParentVnode;
102      guint32 ParentUnique;
103      guint32 SegSize;
104      guint32 ClientModTime;
105      guint32 ServerModTime;
106      guint32 Group;
107      guint32 SyncCount;
108      guint32 spare1;
109      guint32 spare2;
110      guint32 spare3;
111      guint32 spare4;
112 };
113
114 struct afs_volumeinfo {
115     guint32  Vid;
116     guint32  Type;
117     guint32  Type0;
118     guint32  Type1;
119     guint32  Type2;
120     guint32  Type3;
121     guint32  Type4;
122     guint32  ServerCount;
123     guint32  Server0;
124     guint32  Server1;
125     guint32  Server2;
126     guint32  Server3;
127     guint32  Server4;
128     guint32  Server5;
129     guint32  Server6;
130     guint32  Server7;
131     guint16 Part0;
132     guint16 Part1;
133     guint16 Part2;
134     guint16 Part3;
135     guint16 Part4;
136     guint16 Part5;
137     guint16 Part6;
138     guint16 Part7;
139 };
140
141
142 #endif