\doxysection{sccp\+\_\+scmg.\+h}
\label{sccp__scmg_8h_source}\index{include/osmocom/sigtran/protocol/sccp\_scmg.h@{include/osmocom/sigtran/protocol/sccp\_scmg.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{comment}{/* SCCP Management as per Section 5.3 of ITU-\/T Q.713 */}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{keyword}{enum} sccp\_scmg\_msg\_type \{}
\DoxyCodeLine{6         SCCP\_SCMG\_MSGT\_SSA    = 0x01, \textcolor{comment}{/* Subsystem Allowed */}}
\DoxyCodeLine{7         SCCP\_SCMG\_MSGT\_SSP    = 0x02, \textcolor{comment}{/* Subsystem Prohibited */}}
\DoxyCodeLine{8         SCCP\_SCMG\_MSGT\_SST    = 0x03, \textcolor{comment}{/* Subsystem Status Test */}}
\DoxyCodeLine{9         SCCP\_SCMG\_MSGT\_SOR    = 0x04, \textcolor{comment}{/* Subsystem Out-\/of-\/service Request */}}
\DoxyCodeLine{10         SCCP\_SCMG\_MSGT\_SOG    = 0x05, \textcolor{comment}{/* Subsystem Out-\/of-\/service Grant */}}
\DoxyCodeLine{11         SCCP\_SCMG\_MSGT\_SSC    = 0x06, \textcolor{comment}{/* Subsystem Congested */}}
\DoxyCodeLine{12 \};}
\DoxyCodeLine{13 }
\DoxyCodeLine{14 \textcolor{keyword}{struct }sccp\_scmg\_msg \{}
\DoxyCodeLine{15         uint8\_t msg\_type;       \textcolor{comment}{/* enum sccp\_scmg\_msg\_type */}}
\DoxyCodeLine{16         uint8\_t affected\_ssn;}
\DoxyCodeLine{17         uint16\_t affected\_pc;}
\DoxyCodeLine{18         uint8\_t smi;}
\DoxyCodeLine{19         \textcolor{comment}{/* one octet, only in case of SSC */}}
\DoxyCodeLine{20         uint8\_t ssc\_congestion\_lvl[0];}
\DoxyCodeLine{21 \} \_\_attribute\_\_ ((packed));}
\DoxyCodeLine{22 }
\DoxyCodeLine{23 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string sccp\_scmg\_msgt\_names[];}
\DoxyCodeLine{24 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *sccp\_scmg\_msgt\_name(\textcolor{keyword}{enum} sccp\_scmg\_msg\_type msgt)}
\DoxyCodeLine{25 \{ \textcolor{keywordflow}{return} get\_value\_string(sccp\_scmg\_msgt\_names, msgt); \}}

\end{DoxyCode}
