Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

tap-rtp-common.h
1 /* tap-rtp-common.h
2 * RTP streams handler functions used by tshark and wireshark
3 *
4 * Copyright 2008, Ericsson AB
5 * By Balint Reczey <balint.reczey@ericsson.com>
6 *
7 * most functions are copied from ui/gtk/rtp_stream.c and ui/gtk/rtp_analisys.c
8 * Copyright 2003, Alcatel Business Systems
9 * By Lars Ruoff <lars.ruoff@gmx.net>
10 *
11 * Wireshark - Network traffic analyzer
12 * By Gerald Combs <gerald@wireshark.org>
13 * Copyright 1998 Gerald Combs
14 *
15 * SPDX-License-Identifier: GPL-2.0-or-later
16 */
17
18 #ifndef __TAP_RTP_COMMON_H__
19 #define __TAP_RTP_COMMON_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24
25 /* type of error when saving voice in a file didn't succeed */
26 typedef enum {
27 TAP_RTP_WRONG_CODEC,
28 TAP_RTP_WRONG_LENGTH,
29 TAP_RTP_PADDING_ERROR,
30 TAP_RTP_SHORT_FRAME,
31 TAP_RTP_FILE_OPEN_ERROR,
32 TAP_RTP_FILE_WRITE_ERROR,
33 TAP_RTP_NO_DATA
34 } error_type_t;
35
36 typedef struct _tap_rtp_save_info_t {
37 FILE *fp;
38 guint32 count;
39 error_type_t error_type;
40 gboolean saved;
41 } tap_rtp_save_info_t;
42
43 struct _rtp_stream_info;
44
45 void rtpstream_reset_cb(void*);
46 void rtp_write_header(struct _rtp_stream_info*, FILE*);
47 int rtpstream_packet(void*, packet_info*, epan_dissect_t *, const void *);
48
49 #ifdef __cplusplus
50 }
51 #endif /* __cplusplus */
52
53 #endif /* __TAP_RTP_COMMON_H__ */
54
55 /*
56 * Editor modelines - https://www.wireshark.org/tools/modelines.html
57 *
58 * Local Variables:
59 * c-basic-offset: 4
60 * tab-width: 8
61 * indent-tabs-mode: nil
62 * End:
63 *
64 * ex: set shiftwidth=4 tabstop=8 expandtab:
65 * :indentSize=4:tabSize=8:noTabs=true:
66 */
_packet_info
Definition: packet_info.h:44
epan_dissect
Definition: epan_dissect.h:28
_tap_rtp_save_info_t
Definition: tap-rtp-common.h:36
_rtp_stream_info
Definition: rtp_stream.h:36