-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflags.txt
executable file
·170 lines (161 loc) · 7.21 KB
/
flags.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
*
* $Id: flags.txt,v 1.1.1.1 2014/10/15 11:55:35 lloydwood Exp $
*
SARATOGA FLAGS FORMAT AND enum types
* Saratoga Sflag Header Field Format - 32 bit unsigned integer (flag_t)
*
* 111111 11112222 22222233
* 01234567 89012345 67890123 45678901
* +--------+--------+--------+--------+
* | | | | |
* +--------+--------+--------+--------+
*
* BEACON FRAME FLAGS
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* |0|0|1|-> Version 1 - f_version
* | | | |0|0|0|0|0|-> Beacon Frame - f_frametype
* | | | | | | | | |X|X|-> Descriptor - f_descriptor
* | | | | | | | | | | |X|-> Bundles - f_bundle
* | | | | | | | | | | | |X|-> Streaming - f_stream
* | | | | | | | | | | | | |X|X| | |-> Tx Willing - f_txwilling
* | | | | | | | | | | | | | | |X|X|-> Rx Willing - f_rxwilling
* | | | | | | | | | | | | | | | | |X|-> UDP Lite - f_udptype
* | | | | | | | | | | | | | | | | | |X|-> Freespace Advertise - f_freespace
* | | | | | | | | | | | | | | | | | | |X|X|-> Freespace Descriptor - f_freespaced
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
*
*******************************************************************
* REQUEST FRAME FLAGS
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* |0|0|1|-> Version 1 - f_version
* | | | |0|0|0|0|1|-> Request Frame - f_frametype
* | | | | | | | | |X|X|-> Descriptor - f_descriptor
* | | | | | | | | | | |X|-> Bundles - f_bundles
* | | | | | | | | | | | |X|-> Streams - f_streams
* | | | | | | | | | | | | |X|X|-> Willingness - f_txwilling
* | | | | | | | | | | | | | | |X|-> Session Type - f_sessiontype
* | | | | | | | | | | | | | | | |X|-> File or Directory - f_fileordir
* | | | | | | | | | | | | | | | | |X|-> UDP Lite - f_udptype
* | | | | | | | | | | | | | | | | | | | | | | | | |X|X|X|X|X|X|X|X|-> Request Type
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
*
*******************************************************************
* METADATA FRAME FLAGS
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* |0|0|1|-> Version 1 - f_version
* | | | |0|0|0|1|0|-> Metadata Frame - f_frametype
* | | | | | | | | |X|X|-> Descriptor - f_descriptor
* | | | | | | | | | | |X|X|-> Type of Transfer - f_transfer
* | | | | | | | | | | | | |X|-> Transfer in Progress - f_progress
* | | | | | | | | | | | | | |X|-> Reliability - f_udptype
* | | | | | | | | | | | | | | | | | | | | | | | | |X|X|X|X|-> Checksum Length - f_csumlen
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | |X|X|X|X|-> Checksum Type - f_csum
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
*
*******************************************************************
* DATA FRAME FLAGS
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* |0|0|1|-> Version 1 - f_version
* | | | |0|0|0|1|1|-> Data Frame - f_frametype
* | | | | | | | | |X|X|-> Descriptor - f_descriptor
* | | | | | | | | | | |X|X|-> Type of Transfer - f_transfer
* | | | | | | | | | | | | |X|-> Timestamps - f_tstamp
* | | | | | | | | | | | | | | | |X|-> Request Status - f_reqstatus
* | | | | | | | | | | | | | | | | |X|-> End of Data - f_eod
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
*
*******************************************************************
* STATUS FRAME FLAGS
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* |0|0|1|-> Version 1 - f_version
* | | | |0|0|1|0|0|-> Status Frame - f_frametype
* | | | | | | | | |X|X|-> Descriptor - f_dewcriptor
* | | | | | | | | | | | | |X|-> Timestamp - f_tstamp
* | | | | | | | | | | | | | |X|->Metadata Received - f_metadatarecvd
* | | | | | | | | | | | | | | |X|-> All Holes - f_allholes
* | | | | | | | | | | | | | | | |X|-> Holes Requested or Sent - f_holes
* | | | | | | | | | | | | | | | | | | | | | | | | |X|X|X|X|X|X|X|X|-> Error Code - f_status
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
* 0 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
*
*******************************************************************
*
* Saratoga Dflag Header Field Format - 16 bit unsigned integer (dflag_t)
*
* 1
* 01234567 89012345
* +--------+--------+
* | | |
* +--------+--------+
*
* DIRECTORY ENTRY FLAGS
* 0 1
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
* | | | | | | | | | | | | | | | | |
* |1|-> Bit 0 is always set
* | | | | | | |X|X|-> Dirent Properties - d_properties
* | | | | | | | | |X|X|-> Dirent Descriptor - d_descriptor
* | | | | | | | | | | |X|-> Dirent File or Bundle - d_forb
* | | | | | | | | | | | | | | | | |
* 0 1
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
*
*******************************************************************
*
* Saratoga Tflag Header Field Format - 8 bit unsigned integer (tflag_t)
*
* 01234567
* +--------+
* | |
* +--------+
*
* TIMESTAMP FLAGS
* 0 1 2 3 4 5 6 7
* | | | | | | | | |
* | | | | | |X|X|X|-> Timestamp Type - t_timestamp
* | | | | | | | | |
* 0 1 2 3 4 5 6 7
*
*******************************************************************
*
* $Log: flags.txt,v $
* Revision 1.1.1.1 2014/10/15 11:55:35 lloydwood
* Creating saratoga-vallona-dev.
*
* This is the Saratoga transfer protocol Vallona implementation,
* under development by Charles Smith.
*
* Revision 1.2 2013/03/30 11:42:03 chas
* Working on directory entry class and also a couple of
* small changes in flags. The dirent has the most significant
* bit always det to 1. So I needed to add a dirent::init()
* flag to set it. Also added support in timestamp for
* standard year 2000 epoch times. Woops just remembered that what
* I have done is not correct for times. epoch is 1970 of course.
* Will sort it
*
* Revision 1.1 2013/03/30 06:17:07 chas
* Major fixup of flags. We now have the number of bits for each flag
* and the most significant bit. This along wth the formula
* 32 - bits - msb gives us the correct shift to do
*
*