-
Notifications
You must be signed in to change notification settings - Fork 5
/
ari.lua
461 lines (349 loc) · 20.2 KB
/
ari.lua
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
---
-- This file contains the main dissector, responsible for dissecting the ARI header and calling the TLV parsers.
-- @author Tobias Kröll
--
-- NOTE:
-- Bits / Bytes are counted from the "left" to align with the bitfield operation in the dissector
-- Also indices for bits/bytes will also start from 0
--
require("ari_utils")
local disTable = DissectorTable.new("ari")
local loader_output = require("ari_data_loader")
local codec_parsers, tlv_parsers, structure_lut, asstring_lut, additional_fields = loader_output.codec_parsers, loader_output.tlv_parsers, loader_output.structure, loader_output.asstring_lut, loader_output.fields
ari = Proto("ari", "ari protocol")
-- Header fields
proto_flag = ProtoField.bytes("ari.proto_flag", "Protocol Flag", base.SPACE)
pkt_seq_num = ProtoField.uint16("ari.seq_num", "Sequence number", base.DEC)
pkt_group = ProtoField.uint8("ari.gid", "Group ID (gid)", base.DEC)
pkt_message_id = ProtoField.uint16("ari.message_id", "Message ID (mid)", base.DEC)
pkt_message_name = ProtoField.string("ari.message_name", "Message Name")
pkt_len = ProtoField.uint16("ari.length", "Length", base.DEC)
pkt_trx = ProtoField.uint16("ari.transaction", "Transaction (trx or ctx)", base.DEC)
pkt_ack_opt = ProtoField.uint8("ari.ack_opt", "Acknowledgement Option", base.DEC)
pkt_gmid = ProtoField.uint32("ari.gmid", "GMID (Combination of Group and Type)", base.DEC)
-- Unknown Header bits/bytes
pkt_unknown_4 = ProtoField.uint8("ari.unknown_4", "Unknown (Byte 4, Bits 5-7)", base.DEC)
pkt_unknown_8 = ProtoField.uint8("ari.unknown_8", "Unknown (Byte 8, Bit 2-3)", base.DEC)
pkt_unknown_10 = ProtoField.uint8("ari.unknown_10", "Unknown (Byte 10, Bit 7)", base.DEC)
-- TLV Header fields
tlv_id_field = ProtoField.uint16("ari.tlv.id", "TLV id (tid)", base.DEC)
tlv_mandatory_field = ProtoField.bool("ari.tlv.mandatory", "TLV mandatory")
tlv_codec_name_field = ProtoField.string("ari.tlv.codec.name", "TLV codec name")
tlv_type_desc_field = ProtoField.string("ari.tlv.type_desc", "TLV type description")
tlv_version_field = ProtoField.uint16("ari.tlv.version", "TLV version", base.DEC)
tlv_length_field = ProtoField.uint16("ari.tlv.length", "TLV length", base.DEC)
-- TLV Data fields
tlv_data_field = ProtoField.bytes("ari.tlv.data", "Raw TLV data", base.SPACE)
tlv_data_uint_field = ProtoField.uint64("ari.tlv.data_uint", "Raw TLV data as uint", base.DEC)
tlv_data_codec_asstring_value_field = ProtoField.uint64("ari.tlv.data_asstring_uint_value", "AsString resolved enum value", base.DEC)
-- Unknown TLV Header bits/bytes
tlv_unknown_0 = ProtoField.uint8("ari.tlv.unknown_0", "Unknown TLV Header Byte 0, Bit 7", base.DEC)
tlv_unknown_2 = ProtoField.uint8("ari.tlv.unknown_2", "Unknown TLV Header Byte 2, Bits 6-7", base.DEC)
-- Expert Informations
expert_tlv_header_malformed = ProtoExpert.new("ari.tlv.header.malformed", "ARI: TLV header incomplete (should have 4 bytes)", expert.group.MALFORMED, expert.severity.ERROR)
expert_tlv_data_malformed = ProtoExpert.new("ari.tlv.data.malformed", "ARI: TLV data length exceeds packet length", expert.group.MALFORMED, expert.severity.ERROR)
expert_header_wrong_magic_bytes = ProtoExpert.new("ari.header.magic_bytes_missing", "ARI: Packet does not start with ARI magic bytes \"DE C0 7E AB\"", expert.group.MALFORMED, expert.severity.ERROR)
expert_too_small = ProtoExpert.new("ari.minimum_length", "ARI: Packet is smaller than minimum length of 12 bytes.", expert.group.MALFORMED, expert.severity.ERROR)
expert_missing_mandatory_tlv = ProtoExpert.new("ari.missing_mandatory_tlv", "ARI: Missing mandatory TLV", expert.group.MALFORMED, expert.severity.ERROR)
expert_tlv_codec_length_warn = ProtoExpert.new("ari.tlv_codec_length_warn", "ARI: Specified codec length did not perfectly fit into this field (some bytes at the end were cut-off).", expert.group.MALFORMED, expert.severity.WARN)
ari.fields = { proto_flag, pkt_seq_num, pkt_group, pkt_message_name, pkt_message_id, pkt_len, pkt_trx, pkt_ack_opt, pkt_gmid, -- Header fields
pkt_unknown_4, pkt_unknown_8, pkt_unknown_10,
tlv_id_field, tlv_mandatory_field, tlv_codec_name_field, tlv_type_desc_field, tlv_version_field, tlv_length_field, tlv_data_field, tlv_data_uint_field, tlv_data_codec_asstring_value_field, tlv_unknown_0, tlv_unknown_2,
}
-- Include fields from TLV parsers
table.Merge(ari.fields, additional_fields)
ari.experts = {
expert_tlv_header_malformed,
expert_tlv_data_malformed,
expert_header_wrong_magic_bytes,
expert_too_small,
expert_missing_mandatory_tlv,
expert_tlv_codec_length_warn
}
--- Initialization function
function ari.init()
disTable:add(147, ari)
end
function dissect_tlv(tlv_tree, packet, cur_tlv_byte, message_type_info)
--- TLV (Header) structure
-- 4 Bytes
-- - ? ??
-- XXXXXXXX_XXXXXXXX_XXXXXXX_XXXXXXXX (variable length data)
-- \_____/? \_/\___/ \___/?? \______/
-- ID | ID \ Length /
-- Version
local buffer = packet.buffer
-- Check if the header is even available in the buffer (not malformed)
if packet.total_length < cur_tlv_byte + 4 then
tlv_tree:add_tvb_expert_info(expert_tlv_header_malformed, buffer(cur_tlv_byte, packet.total_length - cur_tlv_byte))
return nil
end
local tlv_header_buffer = buffer(cur_tlv_byte, 4)
-- Bit 8 or the rightmost bit is still unknown
local tlv_id_1 = tlv_header_buffer:bitfield(0, 7)
local tlv_id_2 = tlv_header_buffer:bitfield(11, 5)
-- TLV ID
local tlv_id = tlv_id_1 + (tlv_id_2 >> -7) -- shift left to concatenate number correctly as found in the logs
local tlv = {}
tlv.id = tlv_id
local tlv_information = message_type_info and message_type_info.tlvs[tlv_id] or nil
local tlv_id_extra_info = ""
if not tlv_information then
tlv_id_extra_info = " (Not specified as an expected ID in libARI.dylib)"
end
tlv_tree:add(tlv_id_field, buffer(cur_tlv_byte, 2), tlv_id, "ID (tid): " .. tlv_id .. tlv_id_extra_info)
local tlv_codec_name = tlv_information and tlv_information.codec and tlv_information.codec.name or nil
local tlv_codec_length = tlv_information and tlv_information.codec and tlv_information.codec.length or nil
local tlv_codec_name_text = tlv_codec_name or "Unknown codec / type"
local tlv_type_desc = tlv_information and tlv_information.type_desc or "???"
local tlv_mandatory = message_type_info and table.Contains(message_type_info.mtlvs, tlv_id) or false
local tlv_item_mandatory = tlv_tree:add(tlv_mandatory_field, buffer(cur_tlv_byte, 2), tlv_mandatory, "Mandatory: " .. (tlv_mandatory and "Yes" or "No"))
local tlv_item_codec_name = tlv_tree:add(tlv_codec_name_field, buffer(cur_tlv_byte, 2), tlv_codec_name_text, "Codec: " .. tlv_codec_name_text)
local tlv_item_type_desc = tlv_tree:add(tlv_type_desc_field, buffer(cur_tlv_byte, 2), tlv_type_desc, "Description: " .. tlv_type_desc)
tlv_item_mandatory:set_generated(true)
tlv_item_codec_name:set_generated(true)
tlv_item_type_desc:set_generated(true)
tlv_tree:append_text(" - " .. tlv_codec_name_text .. " (" .. tlv_type_desc .. ")" .. (tlv_mandatory and "*" or ""))
-- TLV version
local tlv_version = tlv_header_buffer:bitfield(8, 3)
tlv_tree:add(tlv_version_field, buffer(cur_tlv_byte + 1, 1), tlv_version, "Version: " .. tlv_version)
tlv.version = tlv_version
cur_tlv_byte = cur_tlv_byte + 2
-- TLV Length
local tlv_length_1 = tlv_header_buffer:bitfield(16, 6)
local tlv_length_2 = tlv_header_buffer:bitfield(24, 8)
local tlv_length = tlv_length_1 + (tlv_length_2 >> -6)
tlv_tree:add(tlv_length_field, buffer(cur_tlv_byte, 2), tlv_length, "Length: " .. tlv_length)
tlv.length = tlv_length
cur_tlv_byte = cur_tlv_byte + 2
-- Unknown tree containing all still unknown bits
local unknown_tree = tlv_tree:add("Unknown bits")
-- Unknown Byte 0, bit 7
unknown_tree:add(tlv_unknown_0, tlv_header_buffer:range(0, 1), tlv_header_buffer:bitfield(7, 1), "Unknown Byte 0, Bit 7: " .. tlv_header_buffer:bitfield(7, 1))
-- Unkown Byte 2, bits 6-7
unknown_tree:add(tlv_unknown_2, tlv_header_buffer:range(2, 1), tlv_header_buffer:bitfield(22, 2), "Unknown Byte 2, Bits 6-7: " .. tlv_header_buffer:bitfield(22, 2))
-- Return if there is no data associated with the TLV
if tlv_length <= 0 then
return tlv
end
-- Check if the length is even available in the buffer (not malformed)
if packet.total_length < cur_tlv_byte + tlv_length then
tlv_tree:add_tvb_expert_info(expert_tlv_data_malformed, buffer(cur_tlv_byte, packet.total_length - cur_tlv_byte))
return tlv
end
local tlv_data = buffer(cur_tlv_byte, tlv_length)
-- Further helpful data
local extra_information_tree = tlv_tree:add("Extra Information")
-- Add the raw bytes as a field to quickly identify fields encoding by manual analysis
extra_information_tree:add(tlv_data_field, tlv_data)
-- For matching / fuzzing purposes add a simple uint field for all TLVs that are max. 8 bytes long (most status/flag TLVs are).
-- This helps to quickly match those to strings and their value in Ghidra / the binary
local tlv_data_raw_unsigned_int = nil
if tlv_length <= 8 then
tlv_data_raw_unsigned_int = tlv_data:le_uint64()
extra_information_tree:add(tlv_data_uint_field, tlv_data, tlv_data_raw_unsigned_int, "Raw TLV data (uint): " .. tlv_data_raw_unsigned_int)
end
local available_tlv_parsers = table.GetWithPath(tlv_parsers, { packet.group_int, packet.message_id, tlv.id })
local available_codec_parsers = tlv_codec_name and table.GetWithPath(codec_parsers, { tlv_codec_name }) or nil
local extra_information = {
asstring = asstring_lut,
structure = structure_lut,
}
if available_tlv_parsers then
-- TLV parser
local tlv_content_tree = tlv_tree:add(tlv_data, "Content")
local parse_success = false
for _, parser in pairs(available_tlv_parsers) do
parse_success = parser(packet, tlv_content_tree, cur_tlv_byte, tlv_data, extra_information)
if parse_success then
break
end
end
if not parse_success then
tlv_content_tree:set_text("Content: Unknown (tlv parsers failed)")
end
elseif available_codec_parsers then
-- Codec parsers
local tlv_content_tree = tlv_tree:add(tlv_data, "Content")
local parse_success = false
for _, parser in pairs(available_codec_parsers) do
local codecLength = parser.length or tlv_codec_length or tlv_length
local tlv_len_int = tlv_length
local remainder = tlv_length % codecLength
if remainder > 0 then
-- Clean length of data that can be processed
tlv_len_int = tlv_len_int - remainder
-- Add note, that the codec length did not perfectly match a fields length.
tlv_tree:add_tvb_expert_info(expert_tlv_codec_length_warn, buffer(cur_tlv_byte + tlv_len_int, remainder))
end
local occurences = tlv_len_int / codecLength
parse_success = true
for i = 0, occurences - 1 do
parse_success = parse_success and parser.parse(packet, tlv_content_tree, cur_tlv_byte + i * codecLength, tlv_data:range(i * codecLength, codecLength), extra_information)
end
if parse_success then
break
end
end
if not parse_success then
tlv_content_tree:set_text("Content: Unknown (codec parsers failed)")
end
elseif tlv_codec_name and asstring_lut[tlv_codec_name] then
-- AsString resolver
local tlv_content_tree = tlv_tree:add(tlv_data, "Content")
local codecLength = tlv_codec_length or tlv_length
local tlv_len_int = tlv_length
local remainder = tlv_length % codecLength
if remainder > 0 then
-- Clean length of data that can be processed
tlv_len_int = tlv_len_int - remainder
-- Add note, that the codec length did not perfectly match a fields length.
tlv_tree:add_tvb_expert_info(expert_tlv_codec_length_warn, buffer(cur_tlv_byte + tlv_len_int, remainder))
end
local occurences = tlv_len_int / codecLength
for i = 0, occurences - 1 do
local codec_data = tlv_data:range(i * codecLength, codecLength)
local codec_data_uint = codec_data:le_uint64()
local asstring_lut_value = asstring_lut[tlv_codec_name][codec_data_uint:tonumber()]
tlv_content_tree:add(tlv_data_codec_asstring_value_field, codec_data, codec_data_uint, (asstring_lut_value or "???") .. " (" .. codec_data_uint .. ")")
end
else
tlv_tree:add(tlv_data, "Content: Unknown (no parser available)")
end
return tlv
end
function ari.dissector(buffer, pinfo, tree)
--- ARI (Header) structure
-- 12 Bytes
-- 0 1 2 3 4 5 6 7 8 9 10 11
-- DE C0 7E AB XXXXXXXX_XXXXXXXX_XXXXXXX_XXXXXXXX_XXXXXXXX_XXXXXXXX_XXXXXXXX_XXXXXXXX (variable length data)
-- \_________/ \___/??? \_____/| \____/| \______/ \/??|\_/ \______/ \_____/? \______/
-- INDICATOR GROUP SEQ GRP LEN SEQ LEN MID A SEQ MID TRX TRX
--
local packet = {}
packet.buffer = buffer
packet.pinfo = pinfo
packet.total_length = buffer:len()
local ari_tree = tree:add(ari, buffer(), "ARI Protocol")
-- minimum header length check
if packet.total_length < 12 then
ari_tree:add_tvb_expert_info(expert_too_small, buffer())
return
end
-- correct ARI magic bytes check
if buffer(0, 4):bytes() ~= ByteArray.new("de c0 7e ab") then
ari_tree:add_tvb_expert_info(expert_header_wrong_magic_bytes, buffer(0, 4))
return
end
--- HEADER
local header_tree = ari_tree:add(buffer(0, 12), "Header")
-- PROTOCOL FLAG/INDICATOR: DE C0 7E AB
header_tree:add_le(proto_flag, buffer(0, 4))
--- SEQ NUMBER (11 bits split accross bytes 5, 6, 8)
local seq_num = 0
local seq_num_5 = buffer(5, 1):bitfield(0, 7) -- extract first 7 bits from byte 5
local seq_num_6 = buffer(6, 1):bitfield(7, 1) -- extract last bit from byte 6
local seq_num_8 = buffer(8, 1):bitfield(5, 3) -- extract last 3 bits from byte 8
seq_num = seq_num_5
seq_num = seq_num + (seq_num_6 >> -7)
seq_num = seq_num + (seq_num_8 >> -8)
header_tree:add(pkt_seq_num, buffer(5, 4), seq_num, "Sequence Number: " .. seq_num)
packet.seq_num = seq_num
--- Packet Group ID
local pkt_group_int = buffer(4, 1):bitfield(0, 5)
pkt_group_int = pkt_group_int + (buffer(5, 1):bitfield(7, 1) >> -5)
local pkt_group_name = structure_lut[pkt_group_int] and structure_lut[pkt_group_int]["name"] or "???"
header_tree:add(pkt_group, buffer(4, 2), pkt_group_int, "Group (gid): " .. pkt_group_name .. " (" .. pkt_group_int .. ")")
packet.group = pkt_group_name
packet.group_int = pkt_group_int
--- Packet type
local pkt_message_id_int = 0
local pkt_message_id_int_9 = buffer(9, 1):uint()
local pkt_message_id_int_8 = buffer(8, 1):bitfield(0, 2)
pkt_message_id_int = (pkt_message_id_int_9 >> -2) + pkt_message_id_int_8
local pkt_message_name_string = structure_lut[pkt_group_int] and structure_lut[pkt_group_int][pkt_message_id_int] and structure_lut[pkt_group_int][pkt_message_id_int].name or string.format("Unknown (GID: %d, MID: 0x%03x)", pkt_group_int, pkt_message_id_int)
-- set this name into the info column
-- taken from https://osqa-ask.wireshark.org/questions/34726/lua-script-update-info-field
packet.pinfo.cols.info:set(pkt_message_name_string)
packet.pinfo.cols.info:fence()
header_tree:add(pkt_message_id, buffer(8, 2), pkt_message_id_int, "Message ID (mid): " .. pkt_message_id_int .. " (" .. string.format("0x%03x", pkt_message_id_int) .. ")")
local pkt_message_name_item = header_tree:add(pkt_message_name, buffer(8, 2), pkt_message_name_string, "Message name: " .. pkt_message_name_string)
pkt_message_name_item:set_generated(true)
packet.message_name = pkt_message_name_string
packet.message_id = pkt_message_id_int
-- deprecated
packet.type = pkt_message_name_string
packet.type_int = pkt_message_id_int
--- Packet length
local pkt_length = 0
local pkt_len_6 = buffer(6, 1):bitfield(0, 8) -- extract bits from byte 6
local pkt_len_7 = buffer(7, 1):bitfield(0, 8) -- extract bits from byte 7
pkt_length = (pkt_len_6 >> 1) -- Right shift, to ignore the last bit (used by sequence number above)
pkt_length = pkt_length + (pkt_len_7 >> -7) -- Shift left for 7 bits to concatenate bits
header_tree:add(pkt_len, buffer(6, 2), pkt_length, "Length: " .. pkt_length)
packet.length = pkt_length
--- Packet Transaction
local pkt_transaction = 0
local pkt_trx_10 = buffer(10, 1):bitfield(0, 8) -- extract bits from byte 10
local pkt_trx_11 = buffer(11, 1):bitfield(0, 8) -- extract bits from byte 11
pkt_transaction = (pkt_trx_10 >> 1) -- Right shift, to ignore the last bit
pkt_transaction = pkt_transaction + (pkt_trx_11 << 7) -- Shift left for 7 bits to concatenate bits
header_tree:add(pkt_trx, buffer(10, 2), pkt_transaction, "Transaction (trx/ctx): " .. pkt_transaction .. " (" .. string.format("0x%08x", pkt_transaction) .. ")")
packet.trx = pkt_trx
--- Acknowledgement Option
local ack_opt = buffer(8, 1):bitfield(4, 1)
header_tree:add(pkt_ack_opt, buffer(8, 1), ack_opt, "Acknowledgement Option: " .. ack_opt)
packet.ack_opt = ack_opt
--- Virtual field GMID
-- the "gmid" is a virtual id consisting of the message id (or "mid") and group ("gid")
local gmid = (pkt_group_int << 26) | (pkt_message_id_int << 15)
local gmid_item = header_tree:add(pkt_gmid, buffer(4, 6), gmid, "Gmid (Group + Message ID): " .. gmid .. " (" .. string.format("0x%08x", gmid) .. ")")
gmid_item:set_generated(true)
packet.gmid = gmid
-- Unknown bits/bytes
local unknown_tree = header_tree:add("Unknown bits")
unknown_tree:add(pkt_unknown_4, buffer(4, 1), buffer(4, 1):bitfield(5, 3), "Unknown Byte 4, Bits 5-7: " .. buffer(4, 1):bitfield(5, 3))
unknown_tree:add(pkt_unknown_8, buffer(8, 1), buffer(8, 1):bitfield(2, 2), "Unknown Byte 8, Bits 2-3: " .. buffer(8, 1):bitfield(2, 2))
unknown_tree:add(pkt_unknown_10, buffer(10, 1), buffer(10, 1):bitfield(7, 1), "Unknown Byte 10, Bit 7: " .. buffer(10, 1):bitfield(7, 1))
--- DATA
-- Is there even more data?
if packet.total_length > 12 then
local message_type_info = structure_lut[packet.group_int] and structure_lut[packet.group_int][packet.message_id] or nil
local data_tree = ari_tree:add(buffer(12), "Data")
packet.tlvs = {}
--- TLVs
local cur_tlv = 0 -- The current TLV that we are parsing
local cur_tlv_byte = 12 -- 12 is the first TLV / Data byte
while (cur_tlv_byte < packet.total_length) do
local tlv_tree = data_tree:add(buffer(cur_tlv_byte), "")
local tlv = dissect_tlv(tlv_tree, packet, cur_tlv_byte, message_type_info)
packet.tlvs[#packet.tlvs + 1] = tlv
local tlv_data_length = tlv and tlv.length or 0
tlv_tree:set_len(4 + tlv_data_length)
tlv_tree:prepend_text("TLV " .. (tlv and tlv.id or '?'))
-- Calculate next byte offset, 4 Bytes Header + the returned tlv data length
cur_tlv_byte = cur_tlv_byte + 4 + tlv_data_length
cur_tlv = cur_tlv + 1
end
if message_type_info then
local missing_mandatory_tlvs = {}
for i = 1, #message_type_info.mtlvs do
local id = message_type_info.mtlvs[i]
local found = false
for j = 1, #packet.tlvs do
if packet.tlvs[j].id == id then
found = true
break
end
end
if not found then
missing_mandatory_tlvs[#missing_mandatory_tlvs + 1] = id
end
end
if #missing_mandatory_tlvs > 0 then
data_tree:add_tvb_expert_info(expert_missing_mandatory_tlv, buffer(), "ARI: Missing mandatory TLVs with ID: " .. table.concat(missing_mandatory_tlvs, ", "))
end
end
end
pinfo.cols.protocol = ari.name
end