16#ifndef __PACKET_RTP_H__
17#define __PACKET_RTP_H__
20#include "ws_symbol_export.h"
22#include "packet-btavdtp.h"
23#include "packet-sdp.h"
25#define RTP_MEDIA_AUDIO 1
26#define RTP_MEDIA_VIDEO 2
27#define RTP_MEDIA_OTHER 4
30 unsigned int info_version;
31 bool info_padding_set;
33 uint32_t info_media_types;
34 unsigned int info_payload_type;
35 uint16_t info_seq_num;
36 uint32_t info_extended_seq_num;
37 uint32_t info_timestamp;
38 uint64_t info_extended_timestamp;
39 uint32_t info_sync_src;
40 unsigned info_data_len;
41 bool info_all_data_present;
42 unsigned info_payload_offset;
43 unsigned info_payload_len;
45 uint32_t info_setup_frame_num;
46 const uint8_t* info_data;
47 const char *info_payload_type_str;
48 int info_payload_rate;
49 unsigned info_payload_channels;
52 const char *info_ed137_info;
68#define SRTP_ENC_ALG_NOT_SET 0
69#define SRTP_ENC_ALG_NULL 1
70#define SRTP_ENC_ALG_AES_CM 2
71#define SRTP_ENC_ALG_AES_F8 3
72#define SRTP_ENC_ALG_AES_GCM 4
75#define SRTP_AUTH_ALG_NONE 0
76#define SRTP_AUTH_ALG_HMAC_SHA1 1
77#define SRTP_AUTH_ALG_GMAC 2
85 uint8_t key_generation_rate;
97 unsigned encryption_algorithm;
98 unsigned auth_algorithm;
100 unsigned auth_tag_len;
102 struct srtp_key_info **master_keys;
147 const char* encoding_name,
148 const int sample_rate,
149 const unsigned channels,
166 const char* encoding_name,
167 const int sample_rate,
168 const unsigned channels);
208const char* rtp_dyn_payload_get_name(
rtp_dyn_payload_t *rtp_dyn_payload,
const unsigned pt);
226bool rtp_dyn_payload_get_full(
rtp_dyn_payload_t *rtp_dyn_payload,
const unsigned pt,
227 const char **encoding_name,
int *sample_rate,
unsigned *channels,
wmem_map_t **fmtp_map);
235#ifdef DEBUG_CONVERSATION
241#define RTP_CONVERSATION_PROTO_DATA 0
242#define RTP_DECODE_AS_PROTO_DATA 1
244#define MAX_RTP_SETUP_METHOD_SIZE 11
252 char method[MAX_RTP_SETUP_METHOD_SIZE + 1];
253 uint32_t frame_number;
273 const port_type ptype,
276 const char *setup_method,
277 uint32_t setup_frame_number,
278 uint32_t media_types,
284 const port_type ptype,
287 const char *setup_method,
288 uint32_t setup_frame_number,
289 uint32_t media_types,
297 const char *setup_method, uint32_t setup_frame_number,
298 uint32_t media_types,
void *data);
302int dissect_rtp_shim_header(
tvbuff_t *tvb,
int start,
307 unsigned payload_len;
Definition packet-btavdtp.h:26
Definition packet-btavdtp.h:35
Definition packet_info.h:43
Definition packet-rtp.c:136
Definition packet-rtp.h:29
Definition packet-rtp.h:251
struct srtp_info * srtp_info
Definition packet-rtp.h:264
uint32_t media_types
Definition packet-rtp.h:254
struct _rtp_private_conv_info * rtp_conv_info
Definition packet-rtp.h:261
uint64_t extended_timestamp
Definition packet-rtp.h:260
uint32_t extended_seqno
Definition packet-rtp.h:257
Definition packet-rtp.h:306
Definition packet-rtp.c:96
Definition packet-sdp.h:40
Definition wmem_array.c:27
Definition packet-rtp.h:96
Definition tvbuff-int.h:35