Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
rtp_stream_id.h
Go to the documentation of this file.
1
15#ifndef __RTP_STREAM_ID_H__
16#define __RTP_STREAM_ID_H__
17
23#include <epan/address.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif /* __cplusplus */
28
29/* forward */
30struct _rtp_info;
31
33typedef struct _rtpstream_id {
34 address src_addr;
35 uint16_t src_port;
36 address dst_addr;
37 uint16_t dst_port;
38 uint32_t ssrc;
40
44unsigned rtpstream_id_to_hash(const rtpstream_id_t *id);
45
49void rtpstream_id_copy(const rtpstream_id_t *src, rtpstream_id_t *dest);
50
54void rtpstream_id_copy_pinfo(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst);
55
60void rtpstream_id_copy_pinfo_shallow(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst);
61
67
74#define RTPSTREAM_ID_EQUAL_NONE 0x0000
75#define RTPSTREAM_ID_EQUAL_SSRC 0x0001
76bool rtpstream_id_equal(const rtpstream_id_t *id1, const rtpstream_id_t *id2, unsigned flags);
77
83bool rtpstream_id_equal_pinfo(const rtpstream_id_t *id, const packet_info *pinfo, bool swap_src_dst);
84
90bool rtpstream_id_equal_pinfo_rtp_info(const rtpstream_id_t *id, const packet_info *pinfo, const struct _rtp_info *rtp_info);
91
95unsigned pinfo_rtp_info_to_hash(const packet_info *pinfo, const struct _rtp_info *rtp_info);
96
97#ifdef __cplusplus
98}
99#endif /* __cplusplus */
100
101#endif /* __RTP_STREAM_ID_H__ */
void rtpstream_id_copy_pinfo_shallow(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst)
Definition rtp_stream_id.c:61
bool rtpstream_id_equal_pinfo(const rtpstream_id_t *id, const packet_info *pinfo, bool swap_src_dst)
Definition rtp_stream_id.c:132
unsigned rtpstream_id_to_hash(const rtpstream_id_t *id)
Definition rtp_stream_id.c:89
void rtpstream_id_copy_pinfo(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst)
Definition rtp_stream_id.c:41
void rtpstream_id_free(rtpstream_id_t *id)
Definition rtp_stream_id.c:80
unsigned pinfo_rtp_info_to_hash(const packet_info *pinfo, const struct _rtp_info *rtp_info)
Definition rtp_stream_id.c:172
void rtpstream_id_copy(const rtpstream_id_t *src, rtpstream_id_t *dest)
Definition rtp_stream_id.c:30
struct _rtpstream_id rtpstream_id_t
bool rtpstream_id_equal_pinfo_rtp_info(const rtpstream_id_t *id, const packet_info *pinfo, const struct _rtp_info *rtp_info)
Definition rtp_stream_id.c:156
Definition address.h:56
Definition packet_info.h:43
Definition packet-rtp.h:29
Definition rtp_stream_id.h:33