aboutsummaryrefslogtreecommitdiffstats
path: root/metis/ccnx/forwarder/metis/testdata/metis_TestDataV0.h
blob: 700952eab96012847e9b7201f860884e616c236c (plain)
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
/*
 * Copyright (c) 2017 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * This test rig provides some hand-made interests and objects for testing.
 * We use __attribute__((unused)) on each of them, because a test might not use all off
 * the messages and it would otherwise generate a warning mesage at compile time.
 */

#ifndef Metis_metis_TestDataV0_h
#define Metis_metis_TestDataV0_h

#include <ccnx/forwarder/metis/tlv/metis_Tlv.h>

uint8_t metisTestDataV0_EncodedInterest[] = {
    0x00, 0x01, 0x00, 0x36, // ver = 0, type = interest, length = 54
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x32, // type = interest, length = 50
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // 0xA0B0C0D0
    // ------------------------
    0x00, 0x02, 0x00, 0x06, // type = objhash, length = 6
    0x11, 0x22, 0x33, 0x44,
    0x55, 0x66, // 0x112233445566
    // ------------------------
    0x00, 0x03, 0x00, 0x01, // scope, length = 1
    0x02, // value = 2
    // ------------------------
    0x00, 0x05, 0x00, 0x02, // interest lifetime, length = 2
    0x7D, 0x00              // 32000
};

uint8_t metisTestDataV0_EncodedInterest_no_hoplimit[] = {
    0x00, 0x01, 0x00, 0x36, // ver = 0, type = interest, length = 54
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0xFF, 0x00, 0x01, // Unknown TLV value
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x32, // type = interest, length = 50
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // 0xA0B0C0D0
    // ------------------------
    0x00, 0x02, 0x00, 0x06, // type = objhash, length = 6
    0x11, 0x22, 0x33, 0x44,
    0x55, 0x66, // 0x112233445566
    // ------------------------
    0x00, 0x03, 0x00, 0x01, // scope, length = 1
    0x02, // value = 2
    // ------------------------
    0x00, 0x05, 0x00, 0x02, // interest lifetime, length = 2
    0x7D, 0x00                  // 32000
};

uint8_t metisTestDataV0_EncodedInterest_zero_hoplimit[] = {
    0x00, 0x01, 0x00, 0x36, // ver = 0, type = interest, length = 54
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x00, // 0
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x32, // type = interest, length = 50
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // 0xA0B0C0D0
    // ------------------------
    0x00, 0x02, 0x00, 0x06, // type = objhash, length = 6
    0x11, 0x22, 0x33, 0x44,
    0x55, 0x66, // 0x112233445566
    // ------------------------
    0x00, 0x03, 0x00, 0x01, // scope, length = 1
    0x02, // value = 2
    // ------------------------
    0x00, 0x05, 0x00, 0x02, // interest lifetime, length = 2
    0x7D, 0x00                  // 32000
};

uint8_t metisTestDataV0_InterestAllFields[] = {
    0x00, 0x01, 0x00, 0x36, // ver = 0, type = interest, length = 54
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x32, // type = interest, length = 50
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // 0xA0B0C0D0
    // ------------------------
    0x00, 0x02, 0x00, 0x06, // type = objhash, length = 6
    0x11, 0x22, 0x33, 0x44,
    0x55, 0x66, // 0x112233445566
    // ------------------------
    0x00, 0x03, 0x00, 0x01, // scope, length = 1
    0x02, // value = 2
    // ------------------------
    0x00, 0x05, 0x00, 0x02, // interest lifetime, length = 2
    0x7D, 0x00              // 32000
};

uint8_t metisTestDataV0_InterestWithName[] = {
    0x00, 0x01, 0x00, 0x19, // ver = 0, type = interest, length = 25
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x15, // type = interest, length = 21
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l', // "hello"
    'o',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
};

uint8_t metisTestDataV0_InterestWithOtherName[] = {
    0x00, 0x01, 0x00, 0x19, // ver = 0, type = interest, length = 25
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x15, // type = interest, length = 21
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'p',  'a',  'r',  't', // "party"
    'y',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
};

uint8_t metisTestDataV0_InterestWithName_keyid[] = {
    0x00, 0x01, 0x00, 0x21, // ver = 0, type = interest, length = 33
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x1D, // type = interest, length = 29
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l', // "hello"
    'o',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // 0xA0B0C0D0
};

uint8_t metisTestDataV0_InterestWithName_keyid2[] = {
    0x00, 0x01, 0x00, 0x21, // ver = 0, type = interest, length = 33
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x1D, // type = interest, length = 29
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l', // "hello"
    'o',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0x22, 0x22, 0x22, 0x22, // 0x22222222
};

/**
 * This interest will match "metisTestDataV0_EncodedObject" by name and content object hash.
 * The content object hash was computed out-of-band and manually placed here.
 */
uint8_t metisTestDataV0_InterestWithName_objecthash[] = {
    0x00, 0x01, 0x00, 0x21, // ver = 0, type = interest, length = 33
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x1D, // type = interest, length = 29
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l', // "hello"
    'o',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x02, 0x00, 0x20, // type = objhash, length = 32
    0x9B, 0x86, 0x46, 0x3F, // matches "metisTestDataV0_EncodedObject"
    0x8F, 0xFC, 0x3C, 0x26,
    0x9B, 0xE0, 0x91, 0xDE,
    0xA7, 0xC4, 0x33, 0xDF,
    0xF0, 0xBA, 0xBD, 0x4E,
    0xA7, 0x7E, 0x86, 0xA6,
    0x76, 0x16, 0x5E, 0x40,
    0xF2, 0x73, 0x60, 0xCE
};

uint8_t metisTestDataV0_SecondInterest[] = {
    0x00, 0x01, 0x00, 0x36, // ver = 0, type = interest, length = 54
    0x00, 0x00, 0x00, 0x15, // reserved = 0, header length = 21
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x03, 0x00, 0x0C, // Interest Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    // ------------------------
    0x00, 0x01, 0x00, 0x32, // type = interest, length = 50
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h', // "ouch"
    // ------------------------
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0x11, 0x11, 0x11, 0x11, // 0x11111111
    // ------------------------
    0x00, 0x02, 0x00, 0x06, // type = objhash, length = 6
    0x11, 0x22, 0x33, 0x44,
    0x55, 0x66, // 0x112233445566
    // ------------------------
    0x00, 0x03, 0x00, 0x01, // scope, length = 1
    0x02, // value = 2
    // ------------------------
    0x00, 0x05, 0x00, 0x02, // interest lifetime, length = 2
    0x7D, 0x00              // 32000
};

uint8_t metisTestDataV0_EncodedObject[] = {
    0x00, 0x02, 0x00, 0x3A, // ver = 0, type = object, length = 58
    0x00, 0x00, 0x00, 0x1D, // reserved = 0, header length = 29
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x04, 0x00, 0x14, // object Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    0x12, 0x23, 0x34, 0x45,
    0x56, 0x67, 0x78, 0x89, // interest fragid 0x1223344556677889
    // ------------------------
    0x00, 0x02, 0x00, 0x36, // type = object, length = 54
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary length = 5 (OFFSET is 45 here)
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h',
    // ------------------------
    0x00, 0x02, 0x00, 0x08, // nameauth, length = 8
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // value = 0xA0B0C0D0
    // ------------------------
    0x00, 0x04, 0x00, 0x07, // contents, length = 7
    0xAA, 0xBB, 0xCC, 0xDD,
    0xEE, 0xFF, 0xFF, // value = 0xAABBCCDDEEFFFF
    // ------------------------
    0x00, 0x05, 0x00, 0x06, // signature block, length = 6
    0x00, 0x0E, 0x00, 0x02, // signature bits, length = 2
    0x00, 0x00              // value = 0x0000
};

const MetisTlvExtent metisTestDataV0_EncodedObject_name = { .offset = 45, .length = 17 };
const MetisTlvExtent metisTestDataV0_EncodedObject_keyid = { .offset = 70, .length = 4 };

uint8_t metisTestDataV0_EncodedObject_no_name[] = {
    0x00, 0x02, 0x00, 0x3A, // ver = 0, type = object, length = 58
    0x00, 0x00, 0x00, 0x1D, // reserved = 0, header length = 29
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x04, 0x00, 0x14, // object Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    0x12, 0x23, 0x34, 0x45,
    0x56, 0x67, 0x78, 0x89, // interest fragid 0x1223344556677889
    // ------------------------
    0x00, 0x02, 0x00, 0x36, // type = object, length = 54
    // ------------------------
    0xFF, 0xFF, 0x00, 0x11, // type = Unknown, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5 OFFSET = 45
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h',
    // ------------------------
    0x00, 0x02, 0x00, 0x08, // nameauth, length = 8
    0x00, 0x01, 0x00, 0x04, // type = keyid, length = 4
    0xA0, 0xB0, 0xC0, 0xD0, // value = 0xA0B0C0D0
    // ------------------------
    0x00, 0x04, 0x00, 0x07, // contents, length = 7
    0xAA, 0xBB, 0xCC, 0xDD,
    0xEE, 0xFF, 0xFF, // value = 0xAABBCCDDEEFFFF
    // ------------------------
    0x00, 0x05, 0x00, 0x06, // signature block, length = 6
    0x00, 0x0E, 0x00, 0x02, // signature bits, length = 2
    0x00, 0x00                   // value = 0x0000
};

/**
 * Same name as metisTestDataV0_EncodedObject, but different keyid and thus different object hash
 */
uint8_t metisTestDataV0_SecondObject[] = {
    0x00, 0x02, 0x00, 0x3E, // ver = 0, type = object, length = 62
    0x00, 0x00, 0x00, 0x1D, // reserved = 0, header length = 29
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x04, 0x00, 0x14, // object Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    0x12, 0x23, 0x34, 0x45,
    0x56, 0x67, 0x78, 0x89, // interest fragid 0x1223344556677889
    // ------------------------
    0x00, 0x02, 0x00, 0x36, // type = object, length = 54
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5 OFFSET = 45
    'h',  'e',  'l',  'l',
    'o',  // "hello"
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h',
    // ------------------------
    0x00, 0x02, 0x00, 0x08, // nameauth, length = 8
    0x00, 0x01, 0x00, 0x08, // type = keyid, length = 8
    0xA0, 0xB0, 0xC0, 0xD0, // value = 0xA0B0C0D011223344
    0x11, 0x22, 0x33, 0x44,
    // ------------------------
    0x00, 0x04, 0x00, 0x07, // contents, length = 7
    0xAA, 0xBB, 0xCC, 0xDD,
    0xEE, 0xFF, 0xFF, // value = 0xAABBCCDDEEFFFF
    // ------------------------
    0x00, 0x05, 0x00, 0x06, // signature block, length = 6
    0x00, 0x0E, 0x00, 0x02, // signature bits, length = 2
    0x00, 0x00              // value = 0x0000
};

uint8_t metisTestDataV0_object_with_othername[] = {
    0x00, 0x02, 0x00, 0x3E, // ver = 0, type = object, length = 62
    0x00, 0x00, 0x00, 0x1D, // reserved = 0, header length = 29
    // ------------------------
    0x00, 0x02, 0x00, 0x01, // HOPLIMIT
    0x20, // 32
    // ------------------------
    0x00, 0x04, 0x00, 0x14, // object Fragment
    0x01, 0x02, 0x03, 0x04,
    0x05, 0x06, 0x07, 0x08, // fragment 0x0102030405060708
    0x05, 0xDC, 0x04, 0x00, // MTU 1500, fragcnt 4, fragnum 0
    0x12, 0x23, 0x34, 0x45,
    0x56, 0x67, 0x78, 0x89, // interest fragid 0x1223344556677889
    // ------------------------
    0x00, 0x02, 0x00, 0x36, // type = object, length = 54
    // ------------------------
    0x00, 0x00, 0x00, 0x11, // type = name, length = 17
    0x00, 0x02, 0x00, 0x05, // type = binary, length = 5   OFFSET = 45
    'p',  'a',  'r',  't', // "party"
    'y',
    0xF0, 0x00, 0x00, 0x04, // type = app, length = 4
    'o',  'u',  'c',  'h',
    // ------------------------
    0x00, 0x02, 0x00, 0x08, // nameauth, length = 8
    0x00, 0x01, 0x00, 0x08, // type = keyid, length = 8
    0xA0, 0xB0, 0xC0, 0xD0, // value = 0xA0B0C0D011223344
    0x11, 0x22, 0x33, 0x44,
    // ------------------------
    0x00, 0x04, 0x00, 0x07, // contents, length = 7
    0xAA, 0xBB, 0xCC, 0xDD,
    0xEE, 0xFF, 0xFF, // value = 0xAABBCCDDEEFFFF
    // ------------------------
    0x00, 0x05, 0x00, 0x06, // signature block, length = 6
    0x00, 0x0E, 0x00, 0x02, // signature bits, length = 2
    0x00, 0x00              // value = 0x0000
};


/**
 * An example control message
 */
uint8_t metisTestDataV0_CPIMessage[] = {
    0x00, 0xa4, 0x00, 0x33, // ver = 0, type = control, length = 51
    0x00, 0x00, 0x00, 0x00,
    // ------------------------
    0xbe, 0xef, 0x00, 0x2f,
    0x7b, 0x22, 0x43, 0x50,0x49,  0x5f, 0x52, 0x45,   // {"CPI_RE
    0x51, 0x55, 0x45, 0x53,0x54,  0x22, 0x3a, 0x7b,   // QUEST":{
    0x22, 0x53, 0x45, 0x51,0x55,  0x45, 0x4e, 0x43,   // "SEQUENC
    0x45, 0x22, 0x3a, 0x31,0x2c,  0x22, 0x52, 0x4f,   // E":1,"RO
    0x55, 0x54, 0x45, 0x5f,0x4c,  0x49, 0x53, 0x54,   // UTE_LIST
    0x22, 0x3a, 0x7b, 0x7d,0x7d,  0x7d, 0x00, // ":{}}}
};
#endif // Metis_metis_TestDataV0_h