| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
rtp_stream_id.h
Go to the documentation of this file.
1
14
15#ifndef __RTP_STREAM_ID_H__
16#define __RTP_STREAM_ID_H__
17
22
23#include <epan/address.h>
24
25#ifdef __cplusplus
26 extern "C" {
27#endif /* __cplusplus */
28
29/* forward */
30 struct _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
46 unsigned rtpstream_id_to_hash(const rtpstream_id_t *id);
47
53 void rtpstream_id_copy(const rtpstream_id_t *src, rtpstream_id_t *dest);
54
61 void rtpstream_id_copy_pinfo(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst);
62
72 void rtpstream_id_copy_pinfo_shallow(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst);
73
80 void rtpstream_id_free(rtpstream_id_t *id);
81
82#define RTPSTREAM_ID_EQUAL_NONE 0x0000
83#define RTPSTREAM_ID_EQUAL_SSRC 0x0001
84
100 bool rtpstream_id_equal(const rtpstream_id_t *id1, const rtpstream_id_t *id2, unsigned flags);
101
112 bool rtpstream_id_equal_pinfo(const rtpstream_id_t *id, const packet_info *pinfo, bool swap_src_dst);
113
124 bool rtpstream_id_equal_pinfo_rtp_info(const rtpstream_id_t *id, const packet_info *pinfo, const struct _rtp_info *rtp_info);
125
132 unsigned pinfo_rtp_info_to_hash(const packet_info *pinfo, const struct _rtp_info *rtp_info);
133
134#ifdef __cplusplus
135}
136#endif /* __cplusplus */
137
138#endif /* __RTP_STREAM_ID_H__ */
address.h
address
struct _address address
Holds a network or link-layer address of any supported type.
packet_info
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
rtpstream_id_copy_pinfo_shallow
void rtpstream_id_copy_pinfo_shallow(const packet_info *pinfo, rtpstream_id_t *dest, bool swap_src_dst)
Shallow copy addresses and ports from pinfo.
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)
Check if rtpstream_id_t is equal to pinfo.
Definition rtp_stream_id.c:132
rtpstream_id_to_hash
unsigned rtpstream_id_to_hash(const rtpstream_id_t *id)
Get hash of rtpstream_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)
Deep copy addresses and ports from pinfo.
Definition rtp_stream_id.c:41
rtpstream_id_free
void rtpstream_id_free(rtpstream_id_t *id)
Free memory allocated for id it releases address items only, do not release whole structure!
Definition rtp_stream_id.c:80
rtpstream_id_equal
bool rtpstream_id_equal(const rtpstream_id_t *id1, const rtpstream_id_t *id2, unsigned flags)
Compare two RTP stream IDs for equality.
Definition rtp_stream_id.c:109
pinfo_rtp_info_to_hash
unsigned pinfo_rtp_info_to_hash(const packet_info *pinfo, const struct _rtp_info *rtp_info)
Get hash of rtpstream_id extracted from packet_info and _rtp_info.
Definition rtp_stream_id.c:172
rtpstream_id_copy
void rtpstream_id_copy(const rtpstream_id_t *src, rtpstream_id_t *dest)
Copy rtpstream_id_t structure.
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)
Check if rtpstream_id_t is equal to pinfo and rtp_info.
Definition rtp_stream_id.c:156
_rtp_info
Definition packet-rtp.h:29
_rtpstream_id
Definition rtp_stream_id.h:33