\doxysection{sigtran\+\_\+sap.\+h}
\label{sigtran__sap_8h_source}\index{include/osmocom/sigtran/sigtran\_sap.h@{include/osmocom/sigtran/sigtran\_sap.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <osmocom/core/prim.h>}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/osmo\_ss7.h>}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{enum}\ osmo\_sigtran\_sap\ \{}
\DoxyCodeLine{00007\ \ \ \ \ \ \ \ \ SCCP\_SAP\_USER\ \ \ \ \ \ =\ \_SAP\_SS7\_BASE,}
\DoxyCodeLine{00008\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ xUA\ Layer\ Manager\ */}}
\DoxyCodeLine{00009\ \ \ \ \ \ \ \ \ XUA\_SAP\_LM,}
\DoxyCodeLine{00010\ \ \ \ \ \ \ \ \ MTP\_SAP\_USER,}
\DoxyCodeLine{00011\ \};}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00013\ \textcolor{keyword}{enum}\ osmo\_xlm\_prim\_type\ \{}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_SCTP\_ESTABLISH,}
\DoxyCodeLine{00015\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_SCTP\_RELEASE,}
\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_SCTP\_RESTART,}
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_SCTP\_STATUS,}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ASP\_STATUS,}
\DoxyCodeLine{00019\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_AS\_STATUS,}
\DoxyCodeLine{00020\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_NOTIFY,}
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ERROR,}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ASP\_UP,}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ASP\_DOWN,}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ASP\_ACTIVE,}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_ASP\_INACTIVE,}
\DoxyCodeLine{00026\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_AS\_ACTIVE,}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_AS\_INACTIVE,}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_AS\_DOWN,}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ optional\ as\ per\ spec,\ not\ implemented\ yet\ */}}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_RK\_REG,}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ OSMO\_XLM\_PRIM\_M\_RK\_DEREG,}
\DoxyCodeLine{00032\ \};}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00034\ \textcolor{preprocessor}{\#define\ NOTIFY\_PAR\_P\_ASP\_ID\ \ \ \ \ (1\ <<\ 0)}}
\DoxyCodeLine{00035\ \textcolor{preprocessor}{\#define\ NOTIFY\_PAR\_P\_ROUTE\_CTX\ \ (1\ <<\ 1)}}
\DoxyCodeLine{00036\ }
\DoxyCodeLine{00037\ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_notify\ \{}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ uint32\_t\ presence;}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ uint16\_t\ status\_type;}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ uint16\_t\ status\_info;}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ uint32\_t\ asp\_id;}
\DoxyCodeLine{00042\ \ \ \ \ \ \ \ \ uint32\_t\ route\_ctx\_count;}
\DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ uint32\_t\ route\_ctx[OSMO\_SS7\_MAX\_RCTX\_COUNT];}
\DoxyCodeLine{00044\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}\ *info\_string;}
\DoxyCodeLine{00045\ \};}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00047\ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_error\ \{}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ uint32\_t\ code;}
\DoxyCodeLine{00049\ \};}
\DoxyCodeLine{00050\ }
\DoxyCodeLine{00051\ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_rk\_reg\ \{}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ routing\ key\ */}}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_ss7\_routing\_key\ key;}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \textcolor{keyword}{enum}\ osmo\_ss7\_as\_traffic\_mode\ traf\_mode;}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ Status:\ Confirm\ only\ */}}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ uint32\_t\ status;}
\DoxyCodeLine{00058\ \};}
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_rk\_dereg\ \{}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ uint32\_t\ route\_ctx;}
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ Status:\ Confirm\ only\ */}}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ uint32\_t\ status;}
\DoxyCodeLine{00065\ \};}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\ \{}
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_prim\_hdr\ oph;}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \textcolor{keyword}{union\ }\{}
\DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_notify\ notify;}
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_error\ error;}
\DoxyCodeLine{00072\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_rk\_reg\ rk\_reg;}
\DoxyCodeLine{00073\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_xlm\_prim\_rk\_dereg\ rk\_dereg;}
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ \}\ u;}
\DoxyCodeLine{00075\ \};}
\DoxyCodeLine{00076\ }
\DoxyCodeLine{00077\ \textcolor{preprocessor}{\#define\ msgb\_xlm\_prim(msg)\ ((struct\ osmo\_xlm\_prim\ *)(msg)-\/>l1h)}}
\DoxyCodeLine{00078\ }
\DoxyCodeLine{00079\ \textcolor{keywordtype}{char}\ *osmo\_xlm\_prim\_name(\textcolor{keyword}{struct}\ osmo\_prim\_hdr\ *oph);}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00081\ \textcolor{comment}{/*\ XUA\ LM-\/SAP\ towards\ stack\ */}}
\DoxyCodeLine{00082\ \textcolor{keywordtype}{int}\ osmo\_xlm\_sap\_down(\textcolor{keyword}{struct}\ osmo\_ss7\_asp\ *asp,\ \textcolor{keyword}{struct}\ osmo\_prim\_hdr\ *oph);}

\end{DoxyCode}
