| Wireshark 4.7.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
33 typedef 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;
39} rtpstream_id_t;
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
66void rtpstream_id_free(rtpstream_id_t *id);
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__ */
address.h
rtpstream_id_copy_pinfo_shallow
void rtpstream_id_copy_pinfo_shallow(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst)
Definition rtp_stream_id.c:61
rtpstream_id_equal_pinfo
bool rtpstream_id_equal_pinfo(const rtpstream_id_t *id, const packet_info *pinfo, bool swap_src_dst)
Definition rtp_stream_id.c:132
rtpstream_id_to_hash
unsigned rtpstream_id_to_hash(const rtpstream_id_t *id)
Definition rtp_stream_id.c:89
rtpstream_id_copy_pinfo
void rtpstream_id_copy_pinfo(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst)
Definition rtp_stream_id.c:41
rtpstream_id_free
void rtpstream_id_free(rtpstream_id_t *id)
Definition rtp_stream_id.c:80
pinfo_rtp_info_to_hash
unsigned pinfo_rtp_info_to_hash(const packet_info *pinfo, const struct _rtp_info *rtp_info)
Definition rtp_stream_id.c:172
rtpstream_id_copy
void rtpstream_id_copy(const rtpstream_id_t *src, rtpstream_id_t *dest)
Definition rtp_stream_id.c:30
rtpstream_id_t
struct _rtpstream_id rtpstream_id_t
rtpstream_id_equal_pinfo_rtp_info
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
_address
Definition address.h:58
_packet_info
Definition packet_info.h:43
_rtp_info
Definition packet-rtp.h:29
_rtpstream_id
Definition rtp_stream_id.h:33