\doxysection{sccp\+\_\+internal.\+h}
\label{sccp__internal_8h_source}\index{src/sccp\_internal.h@{src/sccp\_internal.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ }
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ <inttypes.h>}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <osmocom/core/fsm.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <osmocom/core/prim.h>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <osmocom/core/linuxlist.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <osmocom/core/linuxrbtree.h>}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <osmocom/core/tdef.h>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/sccp\_sap.h>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/osmo\_ss7.h>}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/protocol/mtp.h>}}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00014\ \textcolor{preprocessor}{\#define\ SCCP\_STR\ "{}Signalling\ Connection\ Control\ Part\(\backslash\)n"{}}}
\DoxyCodeLine{00015\ }
\DoxyCodeLine{00016\ \textcolor{keyword}{struct\ }osmo\_sccp\_instance;}
\DoxyCodeLine{00017\ \textcolor{keyword}{struct\ }osmo\_sccp\_user;}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*\ SCCP\ addressbook\ */}}
\DoxyCodeLine{00020\ \textcolor{keyword}{extern}\ \textcolor{keyword}{struct\ }llist\_head\ sccp\_address\_book\_global;}
\DoxyCodeLine{00021\ \textcolor{keyword}{struct\ }osmo\_sccp\_addr\_entry\ \{}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }llist\_head\ list;}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }llist\_head\ list\_global;}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_ss7\_instance\ *inst;}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}\ name[32];}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_sccp\_addr\ addr;}
\DoxyCodeLine{00027\ \};}
\DoxyCodeLine{00028\ \textcolor{keyword}{struct\ }osmo\_sccp\_addr\_entry\ *addr\_entry\_by\_name\_local(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name,}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{struct}\ osmo\_ss7\_instance\ *inst);}
\DoxyCodeLine{00030\ \textcolor{keyword}{struct\ }osmo\_sccp\_addr\_entry\ *addr\_entry\_by\_name\_global(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name);}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00032\ \textcolor{keyword}{extern}\ \textcolor{keywordtype}{int}\ DSCCP;}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{keyword}{struct\ }xua\_msg;}
\DoxyCodeLine{00035\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{struct\ }sccp\_connection\ *sccp\_find\_conn\_by\_id(\textcolor{keyword}{const}\ \textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ \textcolor{keywordtype}{id});}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{comment}{/*\ Message\ from\ SCOC\ -\/>\ SCRC\ */}}
\DoxyCodeLine{00039\ \textcolor{keywordtype}{int}\ sccp\_scrc\_rx\_scoc\_conn\_msg(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua);}
\DoxyCodeLine{00041\ }
\DoxyCodeLine{00042\ \textcolor{comment}{/*\ Message\ from\ SCLC\ -\/>\ SCRC\ */}}
\DoxyCodeLine{00043\ \textcolor{keywordtype}{int}\ sccp\_scrc\_rx\_sclc\_msg(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ \textcolor{keyword}{struct}\ xua\_msg\ *xua);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \textcolor{comment}{/*\ Message\ from\ MTP\ (SUA)\ -\/>\ SCRC\ */}}
\DoxyCodeLine{00046\ \textcolor{keywordtype}{int}\ scrc\_rx\_mtp\_xfer\_ind\_xua(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua);}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00049\ \textcolor{comment}{/*\ Message\ from\ SCRC\ -\/>\ SCOC\ */}}
\DoxyCodeLine{00050\ \textcolor{keywordtype}{void}\ sccp\_scoc\_rx\_from\_scrc(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua);}
\DoxyCodeLine{00052\ \textcolor{keywordtype}{void}\ sccp\_scoc\_rx\_scrc\_rout\_fail(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua,\ uint32\_t\ cause);}
\DoxyCodeLine{00054\ }
\DoxyCodeLine{00055\ \textcolor{comment}{/*\ Message\ from\ SCRC\ -\/>\ SCLC\ */}}
\DoxyCodeLine{00056\ \textcolor{keywordtype}{int}\ sccp\_sclc\_rx\_from\_scrc(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua);}
\DoxyCodeLine{00058\ \textcolor{keywordtype}{void}\ sccp\_sclc\_rx\_scrc\_rout\_fail(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct}\ xua\_msg\ *xua,\ uint32\_t\ cause);}
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ \textcolor{comment}{/*\ Route\ Failure\ from\ SCRX\ -\/>\ SCOC\ or\ SCLC\ */}}
\DoxyCodeLine{00062\ \textcolor{keywordtype}{void}\ sccp\_rout\_fail\_enqueue(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ \textcolor{keyword}{const}\ \textcolor{keyword}{struct}\ xua\_msg\ *xua,\ uint32\_t\ cause,\ \textcolor{keywordtype}{bool}\ scoc);}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \textcolor{comment}{/*\ SCU\ -\/>\ SCLC\ */}}
\DoxyCodeLine{00065\ \textcolor{keywordtype}{int}\ sccp\_sclc\_user\_sap\_down(\textcolor{keyword}{struct}\ osmo\_sccp\_user\ *scu,\ \textcolor{keyword}{struct}\ osmo\_prim\_hdr\ *oph);}
\DoxyCodeLine{00066\ \textcolor{keywordtype}{int}\ sccp\_sclc\_user\_sap\_down\_nofree(\textcolor{keyword}{struct}\ osmo\_sccp\_user\ *scu,\ \textcolor{keyword}{struct}\ osmo\_prim\_hdr\ *oph);}
\DoxyCodeLine{00067\ }
\DoxyCodeLine{00068\ \textcolor{keyword}{struct\ }msgb\ *sccp\_msgb\_alloc(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name);}
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00070\ \textcolor{keywordtype}{void}\ osmo\_sccp\_vty\_write\_cs7\_node(\textcolor{keyword}{struct}\ vty\ *vty,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *indent,\ \textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst);}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00072\ \textcolor{comment}{/*\ Local\ Broadcast\ (LBCS)\ */}}
\DoxyCodeLine{00073\ \textcolor{keywordtype}{void}\ sccp\_lbcs\_local\_bcast\_pcstate(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{struct}\ osmo\_scu\_pcstate\_param\ *pcstate);}
\DoxyCodeLine{00075\ \textcolor{keywordtype}{void}\ sccp\_lbcs\_local\_bcast\_state(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,}
\DoxyCodeLine{00076\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keyword}{struct}\ osmo\_scu\_state\_param\ *state);}
\DoxyCodeLine{00077\ }
\DoxyCodeLine{00078\ \textcolor{comment}{/*\ SCCP\ Management\ (SCMG)\ */}}
\DoxyCodeLine{00079\ \textcolor{keywordtype}{void}\ sccp\_scmg\_rx\_ssn\_allowed(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ dpc,\ uint32\_t\ ssn,\ uint32\_t\ smi);}
\DoxyCodeLine{00080\ \textcolor{keywordtype}{void}\ sccp\_scmg\_rx\_ssn\_prohibited(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ dpc,\ uint32\_t\ ssn,\ uint32\_t\ smi);}
\DoxyCodeLine{00081\ \textcolor{keywordtype}{void}\ sccp\_scmg\_rx\_mtp\_pause(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ dpc);}
\DoxyCodeLine{00082\ \textcolor{keywordtype}{void}\ sccp\_scmg\_rx\_mtp\_resume(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ dpc);}
\DoxyCodeLine{00083\ \textcolor{keywordtype}{void}\ sccp\_scmg\_rx\_mtp\_status(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ uint32\_t\ dpc,\ \textcolor{keyword}{enum}\ mtp\_unavail\_cause\ cause,\ uint8\_t\ cong\_level);}
\DoxyCodeLine{00084\ \textcolor{keywordtype}{int}\ sccp\_scmg\_init(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst);}

\end{DoxyCode}
