Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-mp2t.h
1/* packet-mp2t.h
2 *
3 * Routines for RFC 2250 MPEG2 (ISO/IEC 13818-1) Transport Stream dissection
4 *
5 * Copyright 2006, Erwin Rol <[email protected]>
6 * Copyright 2012-2014, Guy Martin <[email protected]>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 */
14
15#ifndef __PACKET_MP2T_H__
16#define __PACKET_MP2T_H__
17
18/* The MPEG2 TS packet size */
19#define MP2T_PACKET_SIZE 188
20#define MP2T_SYNC_BYTE 0x47
21
22typedef struct {
23 uint8_t stream_type;
24 uint32_t registration_id;
26
27extern void
28mp2t_add_stream_type(packet_info *pinfo, uint32_t pid, uint32_t stream_type);
29
30extern void
31mp2t_add_registration_id(packet_info *pinfo, uint32_t pid, uint32_t registration_id);
32
33WS_DLL_PUBLIC uint32_t
34mp2t_get_stream_count(void);
35
36WS_DLL_PUBLIC bool
37mp2t_get_sub_stream_id(unsigned stream, unsigned sub_stream, bool le, unsigned *sub_stream_out);
38
39extern char *mp2t_follow_conv_filter(epan_dissect_t *edt, packet_info *pinfo, unsigned *stream, unsigned *sub_stream);
40extern char *mp2t_follow_index_filter(unsigned stream, unsigned sub_stream);
41
42#endif /* __PACKET_MP2T_H__ */
struct epan_dissect epan_dissect_t
Opaque type representing a single packet dissection context.
Definition epan.h:62
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet-mp2t.h:22
Definition stream.c:41