\doxysection{rtcp\+\_\+defs.\+h}
\label{rtcp__defs_8h_source}\index{include/osmocom/netif/rtcp\_defs.h@{include/osmocom/netif/rtcp\_defs.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{comment}{/*}}
\DoxyCodeLine{2 \textcolor{comment}{ * Some definitions for RTCP, just enough to implement SR and RR}}
\DoxyCodeLine{3 \textcolor{comment}{ * generation and parsing in twrtp.}}
\DoxyCodeLine{4 \textcolor{comment}{ */}}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{9 }
\DoxyCodeLine{10 \textcolor{keyword}{struct }rtcp\_sr\_rr\_hdr \{}
\DoxyCodeLine{11         uint8\_t         v\_p\_rc;}
\DoxyCodeLine{12         uint8\_t         pt;}
\DoxyCodeLine{13         uint16\_t        len;}
\DoxyCodeLine{14         uint32\_t        ssrc;}
\DoxyCodeLine{15 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{16 }
\DoxyCodeLine{17 \textcolor{keyword}{struct }rtcp\_sr\_block \{}
\DoxyCodeLine{18         uint32\_t        ntp\_sec;}
\DoxyCodeLine{19         uint32\_t        ntp\_fract;}
\DoxyCodeLine{20         uint32\_t        rtp\_ts;}
\DoxyCodeLine{21         uint32\_t        pkt\_count;}
\DoxyCodeLine{22         uint32\_t        octet\_count;}
\DoxyCodeLine{23 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{keyword}{struct }rtcp\_rr\_block \{}
\DoxyCodeLine{26         uint32\_t        ssrc;}
\DoxyCodeLine{27         uint32\_t        lost\_word;}
\DoxyCodeLine{28         uint32\_t        max\_seq\_ext;}
\DoxyCodeLine{29         uint32\_t        jitter;}
\DoxyCodeLine{30         uint16\_t        lsr\_sec;}
\DoxyCodeLine{31         uint16\_t        lsr\_fract;}
\DoxyCodeLine{32         uint16\_t        dlsr\_sec;}
\DoxyCodeLine{33         uint16\_t        dlsr\_fract;}
\DoxyCodeLine{34 \} \_\_attribute\_\_((packed));}
\DoxyCodeLine{35 }
\DoxyCodeLine{36 \textcolor{preprocessor}{\#define RTCP\_PT\_SR      200}}
\DoxyCodeLine{37 \textcolor{preprocessor}{\#define RTCP\_PT\_RR      201}}
\DoxyCodeLine{38 \textcolor{preprocessor}{\#define RTCP\_PT\_SDES    202}}
\DoxyCodeLine{39 \textcolor{preprocessor}{\#define RTCP\_PT\_BYE     203}}
\DoxyCodeLine{40 \textcolor{preprocessor}{\#define RTCP\_PT\_APP     204}}
\DoxyCodeLine{41 }
\DoxyCodeLine{42 \textcolor{preprocessor}{\#define SDES\_ITEM\_CNAME 1}}
\DoxyCodeLine{43 \textcolor{preprocessor}{\#define SDES\_ITEM\_NAME  2}}
\DoxyCodeLine{44 \textcolor{preprocessor}{\#define SDES\_ITEM\_EMAIL 3}}
\DoxyCodeLine{45 \textcolor{preprocessor}{\#define SDES\_ITEM\_PHONE 4}}
\DoxyCodeLine{46 \textcolor{preprocessor}{\#define SDES\_ITEM\_LOC   5}}
\DoxyCodeLine{47 \textcolor{preprocessor}{\#define SDES\_ITEM\_TOOL  6}}
\DoxyCodeLine{48 \textcolor{preprocessor}{\#define SDES\_ITEM\_NOTE  7}}
\DoxyCodeLine{49 \textcolor{preprocessor}{\#define SDES\_ITEM\_PRIV  8}}

\end{DoxyCode}
