libosmo-netif
1.7.0.14-2aa9.202603301800
Osmocom network interface library
Loading...
Searching...
No Matches
rtcp_defs.h
1
/*
2
* Some definitions for RTCP, just enough to implement SR and RR
3
* generation and parsing in twrtp.
4
*/
5
6
#pragma once
7
8
#include <stdint.h>
9
10
struct
rtcp_sr_rr_hdr
{
11
uint8_t v_p_rc;
12
uint8_t pt;
13
uint16_t len;
14
uint32_t ssrc;
15
} __attribute__((packed));
16
17
struct
rtcp_sr_block
{
18
uint32_t ntp_sec;
19
uint32_t ntp_fract;
20
uint32_t rtp_ts;
21
uint32_t pkt_count;
22
uint32_t octet_count;
23
} __attribute__((packed));
24
25
struct
rtcp_rr_block
{
26
uint32_t ssrc;
27
uint32_t lost_word;
28
uint32_t max_seq_ext;
29
uint32_t jitter;
30
uint16_t lsr_sec;
31
uint16_t lsr_fract;
32
uint16_t dlsr_sec;
33
uint16_t dlsr_fract;
34
} __attribute__((packed));
35
36
#define RTCP_PT_SR 200
37
#define RTCP_PT_RR 201
38
#define RTCP_PT_SDES 202
39
#define RTCP_PT_BYE 203
40
#define RTCP_PT_APP 204
41
42
#define SDES_ITEM_CNAME 1
43
#define SDES_ITEM_NAME 2
44
#define SDES_ITEM_EMAIL 3
45
#define SDES_ITEM_PHONE 4
46
#define SDES_ITEM_LOC 5
47
#define SDES_ITEM_TOOL 6
48
#define SDES_ITEM_NOTE 7
49
#define SDES_ITEM_PRIV 8
rtcp_rr_block
Definition
rtcp_defs.h:25
rtcp_sr_block
Definition
rtcp_defs.h:17
rtcp_sr_rr_hdr
Definition
rtcp_defs.h:10
include
osmocom
netif
rtcp_defs.h
Generated on Mon Mar 30 2026 18:01:10 for libosmo-netif by
1.9.8