Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-h245-template.h
1 /* packet-h245.h
2  * Routines for h245 packet dissection
3  * Copyright 2005, Anders Broman <anders.broman@ericsson.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef PACKET_H245_H
13 #define PACKET_H245_H
14 
15 #include "ws_symbol_export.h"
16 
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;
34 
35 typedef struct _h245_packet_info {
36  h245_msg_type msg_type; /* type of message */
37  gchar frame_label[50]; /* the Frame label used by graph_analysis, what is a abreviation of cinfo */
38  gchar comment[50]; /* the Frame Comment used by graph_analysis, what is a message desc */
40 
41 /*
42  * h223 LC info
43  */
44 
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;
58 
59 typedef struct {
60  guint8 control_field_octets;
61  guint32 send_buffer_size;
63 
64 typedef struct {
65  h223_al_type al_type;
66  gpointer al_params;
67  gboolean segmentable;
68  dissector_handle_t subdissector;
70 
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;
86 
87 typedef struct {
88  h245_lc_data_type_enum data_type;
89  gpointer params;
91 
92 /*
93  * h223 MUX info
94  */
95 
96 typedef struct _h223_mux_element h223_mux_element;
98  h223_mux_element* sublist; /* if NULL, use vc instead */
99  guint16 vc;
100  guint16 repeat_count; /* 0 == untilClosingFlag */
101  h223_mux_element* next;
102 };
103 
104 #include <epan/packet_info.h>
105 #include <epan/dissectors/packet-per.h>
106 
107 typedef void (*h223_set_mc_handle_t) ( packet_info* pinfo, guint8 mc, h223_mux_element* me);
108 WS_DLL_PUBLIC void h245_set_h223_set_mc_handle( h223_set_mc_handle_t handle );
109 
110 typedef void (*h223_add_lc_handle_t) ( packet_info* pinfo, guint16 lc, h223_lc_params* params);
111 WS_DLL_PUBLIC void h245_set_h223_add_lc_handle( h223_add_lc_handle_t handle );
112 
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);
115 
116 
117 #endif /* PACKET_H245_H */
118 
119 
Definition: packet-h245-template.h:97
Definition: packet-h245-template.h:35
Definition: packet-h245-template.h:64
Definition: packet_info.h:44
Definition: tvbuff-int.h:35
Definition: packet.c:659
Definition: packet-h245-template.h:87
Definition: proto.h:759
Definition: packet-h245-template.h:59