\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{1 \textcolor{preprocessor}{\#pragma once}} \DoxyCodeLine{2 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{3 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{4 } \DoxyCodeLine{5 } \DoxyCodeLine{6 \textcolor{keyword}{enum} osmo\_sigtran\_sap \{} \DoxyCodeLine{7 SCCP\_SAP\_USER = \_SAP\_SS7\_BASE,} \DoxyCodeLine{8 \textcolor{comment}{/* xUA Layer Manager */}} \DoxyCodeLine{9 XUA\_SAP\_LM,} \DoxyCodeLine{10 MTP\_SAP\_USER,} \DoxyCodeLine{11 \};} \DoxyCodeLine{12 } \DoxyCodeLine{13 \textcolor{keyword}{enum} osmo\_xlm\_prim\_type \{} \DoxyCodeLine{14 OSMO\_XLM\_PRIM\_M\_SCTP\_ESTABLISH,} \DoxyCodeLine{15 OSMO\_XLM\_PRIM\_M\_SCTP\_RELEASE,} \DoxyCodeLine{16 OSMO\_XLM\_PRIM\_M\_SCTP\_RESTART,} \DoxyCodeLine{17 OSMO\_XLM\_PRIM\_M\_SCTP\_STATUS,} \DoxyCodeLine{18 OSMO\_XLM\_PRIM\_M\_ASP\_STATUS,} \DoxyCodeLine{19 OSMO\_XLM\_PRIM\_M\_AS\_STATUS,} \DoxyCodeLine{20 OSMO\_XLM\_PRIM\_M\_NOTIFY,} \DoxyCodeLine{21 OSMO\_XLM\_PRIM\_M\_ERROR,} \DoxyCodeLine{22 OSMO\_XLM\_PRIM\_M\_ASP\_UP,} \DoxyCodeLine{23 OSMO\_XLM\_PRIM\_M\_ASP\_DOWN,} \DoxyCodeLine{24 OSMO\_XLM\_PRIM\_M\_ASP\_ACTIVE,} \DoxyCodeLine{25 OSMO\_XLM\_PRIM\_M\_ASP\_INACTIVE,} \DoxyCodeLine{26 OSMO\_XLM\_PRIM\_M\_AS\_ACTIVE,} \DoxyCodeLine{27 OSMO\_XLM\_PRIM\_M\_AS\_INACTIVE,} \DoxyCodeLine{28 OSMO\_XLM\_PRIM\_M\_AS\_DOWN,} \DoxyCodeLine{29 \textcolor{comment}{/* optional as per spec, not implemented yet */}} \DoxyCodeLine{30 OSMO\_XLM\_PRIM\_M\_RK\_REG,} \DoxyCodeLine{31 OSMO\_XLM\_PRIM\_M\_RK\_DEREG,} \DoxyCodeLine{32 \};} \DoxyCodeLine{33 } \DoxyCodeLine{34 \textcolor{preprocessor}{\#define NOTIFY\_PAR\_P\_ASP\_ID (1 << 0)}} \DoxyCodeLine{35 \textcolor{preprocessor}{\#define NOTIFY\_PAR\_P\_ROUTE\_CTX (1 << 1)}} \DoxyCodeLine{36 } \DoxyCodeLine{37 \textcolor{keyword}{struct }osmo\_xlm\_prim\_notify \{} \DoxyCodeLine{38 uint32\_t presence;} \DoxyCodeLine{39 uint16\_t status\_type;} \DoxyCodeLine{40 uint16\_t status\_info;} \DoxyCodeLine{41 uint32\_t asp\_id;} \DoxyCodeLine{42 uint32\_t route\_ctx;} \DoxyCodeLine{43 \textcolor{keywordtype}{char} *info\_string;} \DoxyCodeLine{44 \};} \DoxyCodeLine{45 } \DoxyCodeLine{46 \textcolor{keyword}{struct }osmo\_xlm\_prim\_error \{} \DoxyCodeLine{47 uint32\_t code;} \DoxyCodeLine{48 \};} \DoxyCodeLine{49 } \DoxyCodeLine{50 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_reg \{} \DoxyCodeLine{51 \textcolor{comment}{/* routing key */}} \DoxyCodeLine{52 \textcolor{keyword}{struct }osmo\_ss7\_routing\_key key;} \DoxyCodeLine{53 \textcolor{keyword}{enum} osmo\_ss7\_as\_traffic\_mode traf\_mode;} \DoxyCodeLine{54 } \DoxyCodeLine{55 \textcolor{comment}{/* Status: Confirm only */}} \DoxyCodeLine{56 uint32\_t status;} \DoxyCodeLine{57 \};} \DoxyCodeLine{58 } \DoxyCodeLine{59 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_dereg \{} \DoxyCodeLine{60 uint32\_t route\_ctx;} \DoxyCodeLine{61 } \DoxyCodeLine{62 \textcolor{comment}{/* Status: Confirm only */}} \DoxyCodeLine{63 uint32\_t status;} \DoxyCodeLine{64 \};} \DoxyCodeLine{65 } \DoxyCodeLine{66 \textcolor{keyword}{struct }osmo\_xlm\_prim \{} \DoxyCodeLine{67 \textcolor{keyword}{struct }osmo\_prim\_hdr oph;} \DoxyCodeLine{68 \textcolor{keyword}{union }\{} \DoxyCodeLine{69 \textcolor{keyword}{struct }osmo\_xlm\_prim\_notify notify;} \DoxyCodeLine{70 \textcolor{keyword}{struct }osmo\_xlm\_prim\_error error;} \DoxyCodeLine{71 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_reg rk\_reg;} \DoxyCodeLine{72 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_dereg rk\_dereg;} \DoxyCodeLine{73 \} u;} \DoxyCodeLine{74 \};} \DoxyCodeLine{75 } \DoxyCodeLine{76 \textcolor{preprocessor}{\#define msgb\_xlm\_prim(msg) ((struct osmo\_xlm\_prim *)(msg)-\/>l1h)}} \DoxyCodeLine{77 } \DoxyCodeLine{78 \textcolor{keywordtype}{char} *osmo\_xlm\_prim\_name(\textcolor{keyword}{struct} osmo\_prim\_hdr *oph);} \DoxyCodeLine{79 } \DoxyCodeLine{80 \textcolor{comment}{/* XUA LM-\/SAP towards stack */}} \DoxyCodeLine{81 \textcolor{keywordtype}{int} osmo\_xlm\_sap\_down(\textcolor{keyword}{struct} osmo\_ss7\_asp *asp, \textcolor{keyword}{struct} osmo\_prim\_hdr *oph);} \end{DoxyCode}