~nickbp/originz

ref: bench-baseline originz/fbs/dns_enums.fbs -rw-r--r-- 10.4 KiB
d94f181cNick Parker Backport current benchmark to older code 1 year, 9 months ago
                                                                                
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
// This file is autogenerated by update_fbs.rs. Don't touch.

enum ResourceClass : uint16 {

  /// Reserved [RFC6895]
  CLASS_RESERVED_0 = 0,

  /// Internet (IN) [RFC1035]
  CLASS_INTERNET = 1,

  // Unassigned
  // 2

  /// Chaos (CH) [D. Moon, "Chaosnet", A.I. Memo 628, Massachusetts Institute of Technology Artificial Intelligence Laboratory, June 1981.]
  CLASS_CHAOS = 3,

  /// Hesiod (HS) [Dyer, S., and F. Hsu, "Hesiod", Project Athena Technical Plan - Name Service, April 1987.]
  CLASS_HESIOD = 4,

  // Unassigned
  // 5-253

  /// QCLASS NONE [RFC2136]
  CLASS_NONE = 254,

  /// QCLASS * (ANY) [RFC1035]
  CLASS_ANY = 255,

  // Unassigned
  // 256-65279

  // Reserved for Private Use [RFC6895]
  // 65280-65534

  /// Reserved [RFC6895]
  CLASS_RESERVED_65535 = 65535,

}

enum ResourceType : uint16 {

  /// a host address [RFC1035]
  TYPE_A = 1,

  /// an authoritative name server [RFC1035]
  TYPE_NS = 2,

  /// a mail destination (OBSOLETE - use MX) [RFC1035]
  TYPE_MD_OBSOLETE = 3,

  /// a mail forwarder (OBSOLETE - use MX) [RFC1035]
  TYPE_MF_OBSOLETE = 4,

  /// the canonical name for an alias [RFC1035]
  TYPE_CNAME = 5,

  /// marks the start of a zone of authority [RFC1035]
  TYPE_SOA = 6,

  /// a mailbox domain name (EXPERIMENTAL) [RFC1035]
  TYPE_MB = 7,

  /// a mail group member (EXPERIMENTAL) [RFC1035]
  TYPE_MG = 8,

  /// a mail rename domain name (EXPERIMENTAL) [RFC1035]
  TYPE_MR = 9,

  /// a null RR (EXPERIMENTAL) [RFC1035]
  TYPE_NULL = 10,

  /// a well known service description [RFC1035]
  TYPE_WKS = 11,

  /// a domain name pointer [RFC1035]
  TYPE_PTR = 12,

  /// host information [RFC1035]
  TYPE_HINFO = 13,

  /// mailbox or mail list information [RFC1035]
  TYPE_MINFO = 14,

  /// mail exchange [RFC1035]
  TYPE_MX = 15,

  /// text strings [RFC1035]
  TYPE_TXT = 16,

  /// for Responsible Person [RFC1183]
  TYPE_RP = 17,

  /// for AFS Data Base location [RFC1183][RFC5864]
  TYPE_AFSDB = 18,

  /// for X.25 PSDN address [RFC1183]
  TYPE_X25 = 19,

  /// for ISDN address [RFC1183]
  TYPE_ISDN = 20,

  /// for Route Through [RFC1183]
  TYPE_RT = 21,

  /// for NSAP address, NSAP style A record [RFC1706]
  TYPE_NSAP = 22,

  /// for domain name pointer, NSAP style [RFC1348][RFC1637][RFC1706]
  TYPE_NSAP_PTR = 23,

  /// for security signature [RFC4034][RFC3755][RFC2535][RFC2536][RFC2537][RFC2931][RFC3110][RFC3008]
  TYPE_SIG = 24,

  /// for security key [RFC4034][RFC3755][RFC2535][RFC2536][RFC2537][RFC2539][RFC3008][RFC3110]
  TYPE_KEY = 25,

  /// X.400 mail mapping information [RFC2163]
  TYPE_PX = 26,

  /// Geographical Position [RFC1712]
  TYPE_GPOS = 27,

  /// IP6 Address [RFC3596]
  TYPE_AAAA = 28,

  /// Location Information [RFC1876]
  TYPE_LOC = 29,

  /// Next Domain (OBSOLETE) [RFC3755][RFC2535]
  TYPE_NXT_OBSOLETE = 30,

  /// Endpoint Identifier [Michael_Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt]
  TYPE_EID = 31,

  /// Nimrod Locator [1][Michael_Patton][http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt]
  TYPE_NIMLOC = 32,

  /// Server Selection [1][RFC2782]
  TYPE_SRV = 33,

  /// ATM Address [         ATM Forum Technical Committee, "ATM Name System, V2.0", Doc ID: AF-DANS-0152.000, July 2000. Available from and held in escrow by IANA.]
  TYPE_ATMA = 34,

  /// Naming Authority Pointer [RFC2915][RFC2168][RFC3403]
  TYPE_NAPTR = 35,

  /// Key Exchanger [RFC2230]
  TYPE_KX = 36,

  /// CERT [RFC4398]
  TYPE_CERT = 37,

  /// A6 (OBSOLETE - use AAAA) [RFC3226][RFC2874][RFC6563]
  TYPE_A6_OBSOLETE = 38,

  /// DNAME [RFC6672]
  TYPE_DNAME = 39,

  /// SINK [Donald_E_Eastlake][http://tools.ietf.org/html/draft-eastlake-kitchen-sink]
  TYPE_SINK = 40,

  /// OPT [RFC6891][RFC3225]
  TYPE_OPT = 41,

  /// APL [RFC3123]
  TYPE_APL = 42,

  /// Delegation Signer [RFC4034][RFC3658]
  TYPE_DS = 43,

  /// SSH Key Fingerprint [RFC4255]
  TYPE_SSHFP = 44,

  /// IPSECKEY [RFC4025]
  TYPE_IPSECKEY = 45,

  /// RRSIG [RFC4034][RFC3755]
  TYPE_RRSIG = 46,

  /// NSEC [RFC4034][RFC3755]
  TYPE_NSEC = 47,

  /// DNSKEY [RFC4034][RFC3755]
  TYPE_DNSKEY = 48,

  /// DHCID [RFC4701]
  TYPE_DHCID = 49,

  /// NSEC3 [RFC5155]
  TYPE_NSEC3 = 50,

  /// NSEC3PARAM [RFC5155]
  TYPE_NSEC3PARAM = 51,

  /// TLSA [RFC6698]
  TYPE_TLSA = 52,

  /// S/MIME cert association [RFC8162]
  TYPE_SMIMEA = 53,

  // Unassigned
  // 54

  /// Host Identity Protocol [RFC8005]
  TYPE_HIP = 55,

  /// NINFO [Jim_Reid]
  TYPE_NINFO = 56,

  /// RKEY [Jim_Reid]
  TYPE_RKEY = 57,

  /// Trust Anchor LINK [Wouter_Wijngaards]
  TYPE_TALINK = 58,

  /// Child DS [RFC7344]
  TYPE_CDS = 59,

  /// DNSKEY(s) the Child wants reflected in DS [RFC7344]
  TYPE_CDNSKEY = 60,

  /// OpenPGP Key [RFC7929]
  TYPE_OPENPGPKEY = 61,

  /// Child-To-Parent Synchronization [RFC7477]
  TYPE_CSYNC = 62,

  /// message digest for DNS zone [draft-wessels-dns-zone-digest]
  TYPE_ZONEMD = 63,

  // Unassigned
  // 64-98

  /// [RFC7208]
  TYPE_SPF = 99,

  /// [IANA-Reserved]
  TYPE_UINFO = 100,

  /// [IANA-Reserved]
  TYPE_UID = 101,

  /// [IANA-Reserved]
  TYPE_GID = 102,

  /// [IANA-Reserved]
  TYPE_UNSPEC = 103,

  /// [RFC6742]
  TYPE_NID = 104,

  /// [RFC6742]
  TYPE_L32 = 105,

  /// [RFC6742]
  TYPE_L64 = 106,

  /// [RFC6742]
  TYPE_LP = 107,

  /// an EUI-48 address [RFC7043]
  TYPE_EUI48 = 108,

  /// an EUI-64 address [RFC7043]
  TYPE_EUI64 = 109,

  // Unassigned
  // 110-248

  /// Transaction Key [RFC2930]
  TYPE_TKEY = 249,

  /// Transaction Signature [RFC2845]
  TYPE_TSIG = 250,

  /// incremental transfer [RFC1995]
  TYPE_IXFR = 251,

  /// transfer of an entire zone [RFC1035][RFC5936]
  TYPE_AXFR = 252,

  /// mailbox-related RRs (MB, MG or MR) [RFC1035]
  TYPE_MAILB = 253,

  /// mail agent RRs (OBSOLETE - see MX) [RFC1035]
  TYPE_MAILA_OBSOLETE = 254,

  /// A request for some or all records the server has available [RFC1035][RFC6895][RFC8482]
  TYPE_ANY = 255,

  /// URI [RFC7553]
  TYPE_URI = 256,

  /// Certification Authority Restriction [RFC8659]
  TYPE_CAA = 257,

  /// Application Visibility and Control [Wolfgang_Riedel]
  TYPE_AVC = 258,

  /// Digital Object Architecture [draft-durand-doa-over-dns]
  TYPE_DOA = 259,

  /// Automatic Multicast Tunneling Relay [RFC8777]
  TYPE_AMTRELAY = 260,

  // Unassigned
  // 261-32767

  /// DNSSEC Trust Authorities [Sam_Weiler][http://cameo.library.cmu.edu/][         Deploying DNSSEC Without a Signed Root.  Technical Report 1999-19, Information Networking Institute, Carnegie Mellon University, April 2004.]
  TYPE_TA = 32768,

  /// DNSSEC Lookaside Validation (OBSOLETE) [RFC8749][RFC4431]
  TYPE_DLV_OBSOLETE = 32769,

  // Unassigned
  // 32770-65279

  // Private use
  // 65280-65534

  /// Reserved
  TYPE_RESERVED_65535 = 65535,

}

enum OpCode : uint8 {

  /// Query [RFC1035]
  OP_QUERY = 0,

  /// IQuery  (Inverse Query, OBSOLETE) [RFC3425]
  OP_IQUERY_OBSOLETE = 1,

  /// Status [RFC1035]
  OP_STATUS = 2,

  // Unassigned
  // 3

  /// Notify [RFC1996]
  OP_NOTIFY = 4,

  /// Update [RFC2136]
  OP_UPDATE = 5,

  /// DNS Stateful Operations (DSO) [RFC8490]
  OP_DSO = 6,

  // Unassigned
  // 7-15

}

enum ResponseCode : uint16 {

  /// NoError: No Error [RFC1035]
  RESPONSE_NOERROR = 0,

  /// FormErr: Format Error [RFC1035]
  RESPONSE_FORMERR = 1,

  /// ServFail: Server Failure [RFC1035]
  RESPONSE_SERVFAIL = 2,

  /// NXDomain: Non-Existent Domain [RFC1035]
  RESPONSE_NXDOMAIN = 3,

  /// NotImp: Not Implemented [RFC1035]
  RESPONSE_NOTIMP = 4,

  /// Refused: Query Refused [RFC1035]
  RESPONSE_REFUSED = 5,

  /// YXDomain: Name Exists when it should not [RFC2136][RFC6672]
  RESPONSE_YXDOMAIN = 6,

  /// YXRRSet: RR Set Exists when it should not [RFC2136]
  RESPONSE_YXRRSET = 7,

  /// NXRRSet: RR Set that should exist does not [RFC2136]
  RESPONSE_NXRRSET = 8,

  /// NotAuth: Server Not Authoritative for zone [RFC2136]
  /// NotAuth: Not Authorized [RFC2845]
  RESPONSE_NOTAUTH = 9,

  /// NotZone: Name not contained in zone [RFC2136]
  RESPONSE_NOTZONE = 10,

  /// DSOTYPENI: DSO-TYPE Not Implemented [RFC8490]
  RESPONSE_DSOTYPENI = 11,

  // Unassigned
  // 12-15

  /// BADVERS: Bad OPT Version [RFC6891]
  /// BADSIG: TSIG Signature Failure [RFC2845]
  RESPONSE_BADVERS_BADSIG = 16,

  /// BADKEY: Key not recognized [RFC2845]
  RESPONSE_BADKEY = 17,

  /// BADTIME: Signature out of time window [RFC2845]
  RESPONSE_BADTIME = 18,

  /// BADMODE: Bad TKEY Mode [RFC2930]
  RESPONSE_BADMODE = 19,

  /// BADNAME: Duplicate key name [RFC2930]
  RESPONSE_BADNAME = 20,

  /// BADALG: Algorithm not supported [RFC2930]
  RESPONSE_BADALG = 21,

  /// BADTRUNC: Bad Truncation [RFC4635]
  RESPONSE_BADTRUNC = 22,

  /// BADCOOKIE: Bad/missing Server Cookie [RFC7873]
  RESPONSE_BADCOOKIE = 23,

  // Unassigned
  // 24-3840

  // Reserved for Private Use [RFC6895]
  // 3841-4095

  // Unassigned
  // 4096-65534

  /// Reserved, can be allocated by Standards Action [RFC6895]
  RESPONSE_RESERVED_65535 = 65535,

}

enum OPTOptionCode : uint16 {

  /// Reserved [RFC6891]
  OPTOPTION_NONE = 0,

  /// LLQ: Optional [RFC-sekar-dns-llq-06]
  OPTOPTION_LLQ = 1,

  /// UL: On-hold [http://files.dns-sd.org/draft-sekar-dns-ul.txt]
  OPTOPTION_UL = 2,

  /// NSID: Standard [RFC5001]
  OPTOPTION_NSID = 3,

  /// Reserved [draft-cheshire-edns0-owner-option]
  OPTOPTION_RESERVED_4 = 4,

  /// DAU: Standard [RFC6975]
  OPTOPTION_DAU = 5,

  /// DHU: Standard [RFC6975]
  OPTOPTION_DHU = 6,

  /// N3U: Standard [RFC6975]
  OPTOPTION_N3U = 7,

  /// edns-client-subnet: Optional [RFC7871]
  OPTOPTION_EDNS_CLIENT_SUBNET = 8,

  /// EDNS EXPIRE: Optional [RFC7314]
  OPTOPTION_EDNS_EXPIRE = 9,

  /// COOKIE: Standard [RFC7873]
  OPTOPTION_COOKIE = 10,

  /// edns-tcp-keepalive: Standard [RFC7828]
  OPTOPTION_EDNS_TCP_KEEPALIVE = 11,

  /// Padding: Standard [RFC7830]
  OPTOPTION_PADDING = 12,

  /// CHAIN: Standard [RFC7901]
  OPTOPTION_CHAIN = 13,

  /// edns-key-tag: Optional [RFC8145]
  OPTOPTION_EDNS_KEY_TAG = 14,

  /// Extended DNS Error: Standard [RFC-ietf-dnsop-extended-error-16]
  OPTOPTION_EXTENDED_DNS_ERROR = 15,

  /// EDNS-Client-Tag: Optional [draft-bellis-dnsop-edns-tags]
  OPTOPTION_EDNS_CLIENT_TAG = 16,

  /// EDNS-Server-Tag: Optional [draft-bellis-dnsop-edns-tags]
  OPTOPTION_EDNS_SERVER_TAG = 17,

  // Unassigned
  // 18-26945

  /// DeviceID: Optional [https://docs.umbrella.com/developer/networkdevices-api/identifying-dns-traffic2][Brian_Hartvigsen]
  OPTOPTION_DEVICEID = 26946,

  // Unassigned
  // 26947-65000

  // Reserved for Local/Experimental Use [RFC6891]
  // 65001-65534

  /// Reserved for future expansion [RFC6891]
  OPTOPTION_RESERVED_FOR_FUTURE_EXPANSION = 65535,

}