Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-eiss.c
blob672b1ab2a258a474bcce323f65f79c7b0bd8f2f3
1 /* packet-eiss.c
3 * Routines for ETV-AM EISS (OC-SP-ETV-AM1.0-I05)
4 * Copyright 2012, Weston Schmidt <weston_schmidt@alumni.purdue.edu>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #include "config.h"
15 #include <epan/packet.h>
16 #include <epan/expert.h>
17 #include "packet-mpeg-sect.h"
19 void proto_register_eiss(void);
20 void proto_reg_handoff_eiss(void);
22 static dissector_handle_t eiss_handle;
24 static int proto_eiss;
26 static int hf_eiss_reserved2;
27 static int hf_eiss_section_number;
28 static int hf_eiss_last_section_number;
29 static int hf_eiss_protocol_version_major;
30 static int hf_eiss_protocol_version_minor;
31 static int hf_eiss_application_type;
33 /* application_identifier() */
34 static int hf_eiss_organisation_id;
35 static int hf_eiss_application_id;
37 static int hf_eiss_platform_id_length;
39 /* platform id information */
40 static int hf_pdtHWManufacturer;
41 static int hf_pdtHWModel;
42 static int hf_pdtHWVersionMajor;
43 static int hf_pdtHWVersionMinor;
44 static int hf_pdtSWManufacturer;
45 static int hf_pdtSWModel;
46 static int hf_pdtSWVersionMajor;
47 static int hf_pdtSWVersionMinor;
48 static int hf_pdtProfile;
50 /* common to all eiss descriptors */
51 static int hf_eiss_descriptor_tag;
52 static int hf_eiss_descriptor_length;
54 /* application info descriptor */
55 static int hf_eiss_aid_app_control_code;
56 static int hf_eiss_aid_app_version_major;
57 static int hf_eiss_aid_app_version_minor;
58 static int hf_eiss_aid_max_proto_version_major;
59 static int hf_eiss_aid_max_proto_version_minor;
60 static int hf_eiss_aid_test_flag;
61 static int hf_eiss_aid_reserved;
62 static int hf_eiss_aid_priority;
63 static int hf_eiss_irl_type;
64 static int hf_eiss_irl_length;
65 static int hf_eiss_irl_string;
67 /* media time descriptor */
68 static int hf_eiss_mtd_time_value;
70 /* stream event descriptor */
71 static int hf_eiss_sed_time_value;
72 static int hf_eiss_sed_reserved;
73 static int hf_eiss_sed_descriptor_length;
75 static int ett_eiss;
76 static int ett_eiss_platform_id;
77 static int ett_eiss_desc;
79 static expert_field ei_eiss_platform_id_length;
80 static expert_field ei_eiss_invalid_section_length;
81 static expert_field ei_eiss_invalid_section_syntax_indicator;
82 static expert_field ei_eiss_unknown_descriptor;
83 static expert_field ei_eiss_section_number;
84 static expert_field ei_eiss_application_type;
85 static expert_field ei_eiss_invalid_reserved_bits;
87 #define MPEG_SECT_SYNTAX_INDICATOR_MASK 0x8000
88 #define MPEG_SECT_RESERVED_MASK 0x7000
89 #define MPEG_SECT_LENGTH_MASK 0x0FFF
91 static const value_string eiss_descriptor_values[] = {
92 { 0xe0, "ETV Application Information Descriptor" },
93 { 0xe1, "ETV Media Time Descriptor" },
94 { 0xe2, "ETV Stream Event Descriptor" },
95 { 0, NULL }
98 /* ETSI TS 101 812 - DVB-MHP Specification section 10.5 */
99 static const range_string application_id_values[] = {
100 { 0x0000, 0x3fff, "Unsigned Application" },
101 { 0x4000, 0x7fff, "Signed Application" },
102 { 0x8000, 0xfffd, "Reserved by DVB" },
103 { 0xfffe, 0xfffe, "Wildcard for signed applications of an organisation" },
104 { 0xffff, 0xffff, "Wildcard for all applications of an organisation" },
105 { 0, 0, NULL }
108 static const range_string aid_control_code_values[] = {
109 { 0x00, 0x00, "Reserved" },
110 { 0x01, 0x01, "AUTOSTART" },
111 { 0x02, 0x02, "PRESENT" },
112 { 0x03, 0x03, "DESTROY" },
113 { 0x04, 0xff, "Reserved" },
114 { 0, 0, NULL }
117 static unsigned
118 dissect_etv_bif_platform_ids(tvbuff_t *tvb, proto_tree *tree, unsigned offset)
120 proto_tree *platform_tree;
122 platform_tree = proto_tree_add_subtree(tree, tvb, offset, 15, ett_eiss_platform_id, NULL, "Platform Id");
123 proto_tree_add_item(platform_tree, hf_pdtHWManufacturer, tvb, offset, 3, ENC_BIG_ENDIAN);
124 offset += 3;
125 proto_tree_add_item(platform_tree, hf_pdtHWModel, tvb, offset, 2, ENC_BIG_ENDIAN);
126 offset += 2;
127 proto_tree_add_item(platform_tree, hf_pdtHWVersionMajor, tvb, offset, 1, ENC_BIG_ENDIAN);
128 offset++;
129 proto_tree_add_item(platform_tree, hf_pdtHWVersionMinor, tvb, offset, 1, ENC_BIG_ENDIAN);
130 offset++;
131 proto_tree_add_item(platform_tree, hf_pdtSWManufacturer, tvb, offset, 3, ENC_BIG_ENDIAN);
132 offset += 3;
133 proto_tree_add_item(platform_tree, hf_pdtSWModel, tvb, offset, 2, ENC_BIG_ENDIAN);
134 offset += 2;
135 proto_tree_add_item(platform_tree, hf_pdtSWVersionMajor, tvb, offset, 1, ENC_BIG_ENDIAN);
136 offset++;
137 proto_tree_add_item(platform_tree, hf_pdtSWVersionMinor, tvb, offset, 1, ENC_BIG_ENDIAN);
138 offset++;
139 proto_tree_add_item(platform_tree, hf_pdtProfile, tvb, offset, 1, ENC_BIG_ENDIAN);
140 offset++;
142 return 15;
145 static unsigned
146 dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, unsigned offset)
148 proto_tree *sub_tree;
149 unsigned tag;
151 tag = tvb_get_uint8(tvb, offset);
153 if (0xe0 == tag) {
154 unsigned total_length;
156 total_length = tvb_get_uint8(tvb, offset+1);
157 sub_tree = proto_tree_add_subtree(tree, tvb, offset, (2+total_length),
158 ett_eiss_desc, NULL, "ETV Application Information Descriptor");
159 proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
160 tvb, offset, 1, ENC_BIG_ENDIAN);
161 offset++;
162 proto_tree_add_item(sub_tree, hf_eiss_descriptor_length, tvb,
163 offset, 1, ENC_BIG_ENDIAN);
164 offset++;
165 proto_tree_add_item(sub_tree, hf_eiss_aid_app_control_code, tvb,
166 offset, 1, ENC_BIG_ENDIAN);
167 offset++;
168 proto_tree_add_item(sub_tree, hf_eiss_aid_app_version_major, tvb,
169 offset, 1, ENC_BIG_ENDIAN);
170 offset++;
171 proto_tree_add_item(sub_tree, hf_eiss_aid_app_version_minor, tvb,
172 offset, 1, ENC_BIG_ENDIAN);
173 offset++;
174 proto_tree_add_item(sub_tree, hf_eiss_aid_max_proto_version_major,
175 tvb, offset, 1, ENC_BIG_ENDIAN);
176 offset++;
177 proto_tree_add_item(sub_tree, hf_eiss_aid_max_proto_version_minor,
178 tvb, offset, 1, ENC_BIG_ENDIAN);
179 offset++;
180 proto_tree_add_item(sub_tree, hf_eiss_aid_test_flag, tvb, offset,
181 1, ENC_BIG_ENDIAN);
182 offset++;
183 proto_tree_add_item(sub_tree, hf_eiss_aid_reserved, tvb, offset,
184 3, ENC_BIG_ENDIAN);
185 offset += 3;
186 proto_tree_add_item(sub_tree, hf_eiss_aid_priority, tvb, offset,
187 1, ENC_BIG_ENDIAN);
188 offset++;
189 proto_tree_add_item(sub_tree, hf_eiss_irl_type, tvb, offset, 2,
190 ENC_BIG_ENDIAN);
191 proto_tree_add_item(sub_tree, hf_eiss_irl_length, tvb, offset,
192 2, ENC_BIG_ENDIAN);
193 offset += 2;
194 proto_tree_add_item(sub_tree, hf_eiss_irl_string, tvb, offset, 2,
195 ENC_ASCII|ENC_BIG_ENDIAN);
196 return (2+total_length);
197 } else if (0xe1 == tag) {
198 sub_tree = proto_tree_add_subtree(tree, tvb, offset, 6,
199 ett_eiss_desc, NULL, "ETV Media Time Descriptor");
200 proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
201 tvb, offset, 1, ENC_BIG_ENDIAN);
202 offset++;
203 proto_tree_add_item(sub_tree, hf_eiss_descriptor_length, tvb,
204 offset, 1, ENC_BIG_ENDIAN);
205 offset++;
206 proto_tree_add_item(sub_tree, hf_eiss_mtd_time_value, tvb,
207 offset, 4, ENC_BIG_ENDIAN);
208 return 6;
209 } else if (0xe2 == tag) {
210 unsigned tmp;
211 tvbuff_t *payload;
213 tmp = tvb_get_ntohs(tvb, offset+1);
214 sub_tree = proto_tree_add_subtree(tree, tvb, offset, (3+tmp),
215 ett_eiss_desc, NULL, "ETV Stream Event Descriptor");
216 proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
217 tvb, offset, 1, ENC_BIG_ENDIAN);
218 offset++;
219 proto_tree_add_item(sub_tree, hf_eiss_sed_reserved, tvb,
220 offset, 2, ENC_BIG_ENDIAN);
221 proto_tree_add_item(sub_tree, hf_eiss_sed_descriptor_length, tvb,
222 offset, 2, ENC_BIG_ENDIAN);
223 offset += 2;
224 proto_tree_add_item(sub_tree, hf_eiss_sed_time_value, tvb,
225 offset, 4, ENC_BIG_ENDIAN);
226 offset += 4;
228 payload = tvb_new_subset_length(tvb, offset, tmp-4);
229 call_data_dissector(payload, pinfo, sub_tree);
231 return (3+tmp);
232 } else {
233 proto_tree_add_expert(tree, pinfo, &ei_eiss_unknown_descriptor, tvb, offset, -1);
235 /* skip the rest of the section... for now */
236 return 1000;
240 static int
241 dissect_eiss(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
243 unsigned offset = 0, packet_length, sect_len;
244 proto_item *ti;
245 proto_item *pi;
246 proto_tree *eiss_tree;
247 proto_item *items[PACKET_MPEG_SECT_PI__SIZE];
248 bool ssi;
249 unsigned reserved;
250 uint8_t reserved2;
251 uint8_t sect_num, last_sect_num;
253 uint16_t eiss_application_type;
254 uint8_t platform_id_length;
256 col_set_str(pinfo->cinfo, COL_PROTOCOL, "EISS");
258 ti = proto_tree_add_item(tree, proto_eiss, tvb, offset, -1, ENC_NA);
259 eiss_tree = proto_item_add_subtree(ti, ett_eiss);
261 offset += packet_mpeg_sect_header_extra(tvb, offset, eiss_tree, &sect_len,
262 &reserved, &ssi, items);
264 packet_length = sect_len + 3 - 4; /* + for the header, - for the crc */
266 if (false != ssi) {
267 proto_item *msg_error;
268 msg_error = items[PACKET_MPEG_SECT_PI__SSI];
270 proto_item_set_generated(msg_error);
271 expert_add_info(pinfo, msg_error, &ei_eiss_invalid_section_syntax_indicator);
274 if (0 != reserved) {
275 proto_item *msg_error;
276 msg_error = items[PACKET_MPEG_SECT_PI__RESERVED];
278 proto_item_set_generated(msg_error);
279 expert_add_info_format(pinfo, msg_error, &ei_eiss_invalid_reserved_bits, "Invalid reserved1 bits (should all be 0)");
282 if (1021 < sect_len) {
283 proto_item *msg_error;
284 msg_error = items[PACKET_MPEG_SECT_PI__LENGTH];
286 proto_item_set_generated(msg_error);
287 expert_add_info(pinfo, msg_error, &ei_eiss_invalid_section_length);
290 reserved2 = tvb_get_uint8(tvb, offset);
291 pi = proto_tree_add_item(eiss_tree, hf_eiss_reserved2, tvb, offset, 1, ENC_BIG_ENDIAN);
292 if (0 != reserved2) {
293 expert_add_info_format(pinfo, pi, &ei_eiss_invalid_reserved_bits, "Invalid reserved2 bits (should all be 0)");
295 offset++;
297 sect_num = tvb_get_uint8(tvb, offset);
298 last_sect_num = tvb_get_uint8(tvb, offset + 1);
299 pi = proto_tree_add_item(eiss_tree, hf_eiss_section_number, tvb, offset, 1, ENC_BIG_ENDIAN);
300 if (last_sect_num < sect_num) {
301 expert_add_info(pinfo, pi, &ei_eiss_section_number);
303 offset++;
304 proto_tree_add_item(eiss_tree, hf_eiss_last_section_number, tvb, offset, 1, ENC_BIG_ENDIAN);
305 offset++;
306 proto_tree_add_item(eiss_tree, hf_eiss_protocol_version_major, tvb, offset, 1, ENC_BIG_ENDIAN);
307 offset++;
308 proto_tree_add_item(eiss_tree, hf_eiss_protocol_version_minor, tvb, offset, 1, ENC_BIG_ENDIAN);
309 offset++;
311 eiss_application_type = tvb_get_ntohs(tvb, offset);
312 pi = proto_tree_add_item(eiss_tree, hf_eiss_application_type, tvb, offset, 2, ENC_BIG_ENDIAN);
313 if (8 != eiss_application_type) {
314 expert_add_info(pinfo, pi, &ei_eiss_application_type);
316 offset += 2;
317 proto_tree_add_item(eiss_tree, hf_eiss_organisation_id, tvb, offset, 4, ENC_BIG_ENDIAN);
318 offset += 4;
319 proto_tree_add_item(eiss_tree, hf_eiss_application_id, tvb, offset, 2, ENC_BIG_ENDIAN);
320 offset += 2;
322 platform_id_length = tvb_get_uint8(tvb, offset);
323 pi = proto_tree_add_item(eiss_tree, hf_eiss_platform_id_length, tvb, offset, 1, ENC_BIG_ENDIAN);
324 if (0 != platform_id_length % 15) {
325 expert_add_info(pinfo, pi, &ei_eiss_platform_id_length);
327 offset++;
329 while (0 < platform_id_length) {
330 unsigned tmp;
332 tmp = dissect_etv_bif_platform_ids(tvb, eiss_tree, offset);
333 offset += tmp;
334 if (platform_id_length < tmp) {
335 platform_id_length = 0;
336 /* error */
337 } else {
338 platform_id_length -= tmp;
342 if (0 < packet_length) {
343 proto_tree *eiss_desc_tree;
344 eiss_desc_tree = proto_tree_add_subtree(eiss_tree, tvb, offset,
345 packet_length-offset, ett_eiss_desc, NULL, "EISS Descriptor(s)");
346 while (offset < packet_length) {
347 offset += dissect_eiss_descriptors(tvb, pinfo,
348 eiss_desc_tree, offset);
352 packet_mpeg_sect_crc(tvb, pinfo, eiss_tree, 0, sect_len - 1);
353 return tvb_captured_length(tvb);
357 void
358 proto_register_eiss(void)
361 static hf_register_info hf[] = {
362 { &hf_eiss_reserved2, {
363 "Reserved", "eiss.reserved",
364 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
365 } },
367 { &hf_eiss_section_number, {
368 "Section Number", "eiss.sect_num",
369 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
370 } },
372 { &hf_eiss_last_section_number, {
373 "Last Section Number", "eiss.last_sect_num",
374 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
375 } },
377 { &hf_eiss_protocol_version_major, {
378 "Major Version Number", "eiss.version_major",
379 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
380 } },
382 { &hf_eiss_protocol_version_minor, {
383 "Minor Version Number", "eiss.version_minor",
384 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
385 } },
387 { &hf_eiss_application_type, {
388 "Application Type", "eiss.app_type",
389 FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL
390 } },
392 { &hf_eiss_organisation_id, {
393 "Organisation Id", "eiss.org_id",
394 FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL
395 } },
397 { &hf_eiss_application_id, {
398 "Application Id", "eiss.app_id",
399 FT_UINT16, BASE_HEX|BASE_RANGE_STRING, RVALS(application_id_values), 0, NULL, HFILL
400 } },
402 { &hf_eiss_platform_id_length, {
403 "Platform Id Length", "eiss.platform_id_length",
404 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
405 } },
407 { &hf_pdtHWManufacturer, {
408 "Platform Hardware Manufacturer", "eiss.plat_hw_man",
409 FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL
410 } },
412 { &hf_pdtHWModel, {
413 "Platform Hardware Model", "eiss.plat_hw_model",
414 FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL
415 } },
417 { &hf_pdtHWVersionMajor, {
418 "Platform Hardware Major Version", "eiss.plat_hw_major",
419 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
420 } },
422 { &hf_pdtHWVersionMinor, {
423 "Platform Hardware Minor Version", "eiss.plat_hw_minor",
424 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
425 } },
427 { &hf_pdtSWManufacturer, {
428 "Platform Software Manufacturer", "eiss.plat_sw_man",
429 FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL
430 } },
432 { &hf_pdtSWModel, {
433 "Platform Software Model", "eiss.plat_sw_model",
434 FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL
435 } },
437 { &hf_pdtSWVersionMajor, {
438 "Platform Software Major Version", "eiss.plat_sw_major",
439 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
440 } },
442 { &hf_pdtSWVersionMinor, {
443 "Platform Software Minor Version", "eiss.plat_sw_minor",
444 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
445 } },
447 { &hf_pdtProfile, {
448 "Platform Profile", "eiss.plat_profile",
449 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
450 } },
452 { &hf_eiss_descriptor_tag, {
453 "EISS Descriptor Tag", "eiss.desc.tag",
454 FT_UINT8, BASE_HEX, VALS(eiss_descriptor_values), 0, NULL, HFILL
455 } },
457 { &hf_eiss_descriptor_length, {
458 "Descriptor Length", "eiss.desc.length",
459 FT_UINT8, BASE_DEC, NULL, 0, NULL, HFILL
460 } },
462 { &hf_eiss_aid_app_control_code, {
463 "Application Control Code", "eiss.aid.app_control_code",
464 FT_UINT8, BASE_HEX|BASE_RANGE_STRING, RVALS(aid_control_code_values), 0, NULL, HFILL
465 } },
467 { &hf_eiss_aid_app_version_major, {
468 "Application Version Major", "eiss.aid.app_version_major",
469 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
470 } },
472 { &hf_eiss_aid_app_version_minor, {
473 "Application Version Minor", "eiss.aid.app_version_minor",
474 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
475 } },
477 { &hf_eiss_aid_max_proto_version_major, {
478 "Max Protocol Version Major", "eiss.aid.max_proto_version_major",
479 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
480 } },
482 { &hf_eiss_aid_max_proto_version_minor, {
483 "Max Protocol Version Minor", "eiss.aid.max_proto_version_minor",
484 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
485 } },
487 { &hf_eiss_aid_test_flag, {
488 "Application Test Flag", "eiss.aid.test_flag",
489 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
490 } },
492 { &hf_eiss_aid_reserved, {
493 "Reserved", "eiss.aid.reserved",
494 FT_UINT24, BASE_HEX, NULL, 0, NULL, HFILL
495 } },
497 { &hf_eiss_aid_priority, {
498 "Application Priority", "eiss.aid.priority",
499 FT_UINT8, BASE_HEX, NULL, 0, NULL, HFILL
500 } },
502 { &hf_eiss_irl_type, {
503 "Initial Resource Locator Type", "eiss.aid.irl.type",
504 FT_UINT16, BASE_HEX, NULL, 0xfc00, NULL, HFILL
505 } },
507 { &hf_eiss_irl_length, {
508 "Initial Resource Locator Length", "eiss.aid.irl.length",
509 FT_UINT16, BASE_DEC, NULL, 0x03ff, NULL, HFILL
510 } },
512 { &hf_eiss_irl_string, {
513 "Initial Resource Locator String", "eiss.aid.irl.string",
514 FT_UINT_STRING, BASE_NONE, NULL, 0, NULL, HFILL
515 } },
517 { &hf_eiss_mtd_time_value, {
518 "Time Value (ms)", "eiss.mtd.time_value",
519 FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL
520 } },
522 { &hf_eiss_sed_reserved, {
523 "Reserved", "eiss.sed.reserved",
524 FT_UINT16, BASE_DEC, NULL, 0xf000, NULL, HFILL
525 } },
527 { &hf_eiss_sed_descriptor_length, {
528 "Descriptor Length", "eiss.desc.length",
529 FT_UINT16, BASE_DEC, NULL, 0x0fff, NULL, HFILL
530 } },
532 { &hf_eiss_sed_time_value, {
533 "Time Value (ms)", "eiss.sed.time_value",
534 FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL
538 static int *ett[] = {
539 &ett_eiss,
540 &ett_eiss_platform_id,
541 &ett_eiss_desc,
544 static ei_register_info ei[] = {
545 { &ei_eiss_unknown_descriptor, { "eiss.unknown_descriptor", PI_MALFORMED, PI_ERROR, "Unknown Descriptor", EXPFILL }},
546 { &ei_eiss_invalid_section_syntax_indicator, { "eiss.invalid_section_syntax_indicator", PI_MALFORMED, PI_ERROR, "Invalid section_syntax_indicator (should be 0)", EXPFILL }},
547 { &ei_eiss_invalid_reserved_bits, { "eiss.invalid_reserved_bits", PI_MALFORMED, PI_ERROR, "Invalid reserved bits", EXPFILL }},
548 { &ei_eiss_invalid_section_length, { "eiss.invalid_section_length", PI_MALFORMED, PI_ERROR, "Invalid section_length (must not exceed 1021)", EXPFILL }},
549 { &ei_eiss_section_number, { "eiss.sect_num.invalid", PI_MALFORMED, PI_ERROR, "Invalid section_number (must be <= last_section_number)", EXPFILL }},
550 { &ei_eiss_application_type, { "eiss.app_type.invalid", PI_MALFORMED, PI_ERROR, "Invalid application_type (must be 0x0008)", EXPFILL }},
551 { &ei_eiss_platform_id_length, { "eiss.platform_id_length.invalid", PI_MALFORMED, PI_ERROR, "Invalid platform_id_length (must be a multiple of sizeof(etv_bif_platform_ids) == 15)", EXPFILL }},
554 expert_module_t* expert_eiss;
556 proto_eiss = proto_register_protocol("ETV-AM EISS Section", "ETV-AM EISS", "eiss");
558 proto_register_field_array(proto_eiss, hf, array_length(hf));
559 proto_register_subtree_array(ett, array_length(ett));
560 expert_eiss = expert_register_protocol(proto_eiss);
561 expert_register_field_array(expert_eiss, ei, array_length(ei));
563 eiss_handle = register_dissector("eiss", dissect_eiss, proto_eiss);
567 void
568 proto_reg_handoff_eiss(void)
570 dissector_add_uint("mpeg_sect.tid", EISS_SECTION_TID, eiss_handle);
574 * Editor modelines - https://www.wireshark.org/tools/modelines.html
576 * Local variables:
577 * c-basic-offset: 8
578 * tab-width: 8
579 * indent-tabs-mode: t
580 * End:
582 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
583 * :indentSize=8:tabSize=8:noTabs=false: