epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / asn1 / h245 / packet-h245-template.h
blob3193c7831ccaa0404aa55d3251558bdd8bfe8d9d
1 /* packet-h245.h
2 * Routines for h245 packet dissection
3 * Copyright 2005, Anders Broman <anders.broman@ericsson.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef PACKET_H245_H
13 #define PACKET_H245_H
15 #include "ws_symbol_export.h"
17 typedef enum _h245_msg_type {
18 H245_TermCapSet,
19 H245_TermCapSetAck,
20 H245_TermCapSetRjc,
21 H245_TermCapSetRls,
22 H245_OpenLogChn,
23 H245_OpenLogChnCnf,
24 H245_OpenLogChnAck,
25 H245_OpenLogChnRjc,
26 H245_CloseLogChn,
27 H245_CloseLogChnAck,
28 H245_MastSlvDet,
29 H245_MastSlvDetAck,
30 H245_MastSlvDetRjc,
31 H245_MastSlvDetRls,
32 H245_OTHER
33 } h245_msg_type;
35 typedef struct _h245_packet_info {
36 h245_msg_type msg_type; /* type of message */
37 char frame_label[50]; /* the Frame label used by graph_analysis, what is an abbreviation of cinfo */
38 char comment[50]; /* the Frame Comment used by graph_analysis, what is a message desc */
39 } h245_packet_info;
42 * h223 LC info
45 typedef enum {
46 al_nonStandard,
47 al1Framed,
48 al1NotFramed,
49 al2WithoutSequenceNumbers,
50 al2WithSequenceNumbers,
51 al3,
52 /*...*/
53 /* al?M: unimplemented annex C adaptation layers */
54 al1M,
55 al2M,
56 al3M
57 } h223_al_type;
59 typedef struct {
60 uint8_t control_field_octets;
61 uint32_t send_buffer_size;
62 } h223_al3_params;
64 typedef struct {
65 h223_al_type al_type;
66 void *al_params;
67 bool segmentable;
68 dissector_handle_t subdissector;
69 } h223_lc_params;
71 typedef enum {
72 H245_nonStandardDataType,
73 H245_nullData,
74 H245_videoData,
75 H245_audioData,
76 H245_data,
77 H245_encryptionData,
78 /*...,*/
79 H245_h235Control,
80 H245_h235Media,
81 H245_multiplexedStream,
82 H245_redundancyEncoding,
83 H245_multiplePayloadStream,
84 H245_fec
85 } h245_lc_data_type_enum;
87 typedef struct {
88 h245_lc_data_type_enum data_type;
89 void * params;
90 } h245_lc_data_type;
93 * h223 MUX info
96 typedef struct _h223_mux_element h223_mux_element;
97 struct _h223_mux_element {
98 h223_mux_element* sublist; /* if NULL, use vc instead */
99 uint16_t vc;
100 uint16_t repeat_count; /* 0 == untilClosingFlag */
101 h223_mux_element* next;
104 #include <epan/packet_info.h>
105 #include "packet-per.h"
107 typedef void (*h223_set_mc_handle_t) ( packet_info* pinfo, uint8_t mc, h223_mux_element* me);
108 WS_DLL_PUBLIC void h245_set_h223_set_mc_handle( h223_set_mc_handle_t handle );
110 typedef void (*h223_add_lc_handle_t) ( packet_info* pinfo, uint16_t lc, h223_lc_params* params);
111 WS_DLL_PUBLIC void h245_set_h223_add_lc_handle( h223_add_lc_handle_t handle );
113 #include "packet-h245-exp.h"
114 void dissect_h245_FastStart_OLC(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, char *codec_str);
117 #endif /* PACKET_H245_H */