\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{00001\ \textcolor{comment}{/*}}
\DoxyCodeLine{00002\ \textcolor{comment}{\ *\ Some\ definitions\ for\ RTCP,\ just\ enough\ to\ implement\ SR\ and\ RR}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *\ generation\ and\ parsing\ in\ twrtp.}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <stdint.h>}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{struct\ }rtcp\_sr\_rr\_hdr\ \{}
\DoxyCodeLine{00011\ \ \ \ \ \ \ \ \ uint8\_t\ \ \ \ \ \ \ \ \ v\_p\_rc;}
\DoxyCodeLine{00012\ \ \ \ \ \ \ \ \ uint8\_t\ \ \ \ \ \ \ \ \ pt;}
\DoxyCodeLine{00013\ \ \ \ \ \ \ \ \ uint16\_t\ \ \ \ \ \ \ \ len;}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ ssrc;}
\DoxyCodeLine{00015\ \}\ \_\_attribute\_\_((packed));}
\DoxyCodeLine{00016\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{struct\ }rtcp\_sr\_block\ \{}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ ntp\_sec;}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ ntp\_fract;}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ rtp\_ts;}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ pkt\_count;}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ octet\_count;}
\DoxyCodeLine{00023\ \}\ \_\_attribute\_\_((packed));}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{keyword}{struct\ }rtcp\_rr\_block\ \{}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ ssrc;}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ lost\_word;}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ max\_seq\_ext;}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ uint32\_t\ \ \ \ \ \ \ \ jitter;}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ uint16\_t\ \ \ \ \ \ \ \ lsr\_sec;}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ uint16\_t\ \ \ \ \ \ \ \ lsr\_fract;}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ uint16\_t\ \ \ \ \ \ \ \ dlsr\_sec;}
\DoxyCodeLine{00033\ \ \ \ \ \ \ \ \ uint16\_t\ \ \ \ \ \ \ \ dlsr\_fract;}
\DoxyCodeLine{00034\ \}\ \_\_attribute\_\_((packed));}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{preprocessor}{\#define\ RTCP\_PT\_SR\ \ \ \ \ \ 200}}
\DoxyCodeLine{00037\ \textcolor{preprocessor}{\#define\ RTCP\_PT\_RR\ \ \ \ \ \ 201}}
\DoxyCodeLine{00038\ \textcolor{preprocessor}{\#define\ RTCP\_PT\_SDES\ \ \ \ 202}}
\DoxyCodeLine{00039\ \textcolor{preprocessor}{\#define\ RTCP\_PT\_BYE\ \ \ \ \ 203}}
\DoxyCodeLine{00040\ \textcolor{preprocessor}{\#define\ RTCP\_PT\_APP\ \ \ \ \ 204}}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_CNAME\ 1}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_NAME\ \ 2}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_EMAIL\ 3}}
\DoxyCodeLine{00045\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_PHONE\ 4}}
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_LOC\ \ \ 5}}
\DoxyCodeLine{00047\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_TOOL\ \ 6}}
\DoxyCodeLine{00048\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_NOTE\ \ 7}}
\DoxyCodeLine{00049\ \textcolor{preprocessor}{\#define\ SDES\_ITEM\_PRIV\ \ 8}}

\end{DoxyCode}
