\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 <osmocom/core/prim.h>}}
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <osmocom/sigtran/osmo\_ss7.h>}}
\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\_count;}
\DoxyCodeLine{43         uint32\_t route\_ctx[OSMO\_SS7\_MAX\_RCTX\_COUNT];}
\DoxyCodeLine{44         \textcolor{keywordtype}{char} *info\_string;}
\DoxyCodeLine{45 \};}
\DoxyCodeLine{46 }
\DoxyCodeLine{47 \textcolor{keyword}{struct }osmo\_xlm\_prim\_error \{}
\DoxyCodeLine{48         uint32\_t code;}
\DoxyCodeLine{49 \};}
\DoxyCodeLine{50 }
\DoxyCodeLine{51 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_reg \{}
\DoxyCodeLine{52         \textcolor{comment}{/* routing key */}}
\DoxyCodeLine{53         \textcolor{keyword}{struct }osmo\_ss7\_routing\_key key;}
\DoxyCodeLine{54         \textcolor{keyword}{enum} osmo\_ss7\_as\_traffic\_mode traf\_mode;}
\DoxyCodeLine{55 }
\DoxyCodeLine{56         \textcolor{comment}{/* Status: Confirm only */}}
\DoxyCodeLine{57         uint32\_t status;}
\DoxyCodeLine{58 \};}
\DoxyCodeLine{59 }
\DoxyCodeLine{60 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_dereg \{}
\DoxyCodeLine{61         uint32\_t route\_ctx;}
\DoxyCodeLine{62 }
\DoxyCodeLine{63         \textcolor{comment}{/* Status: Confirm only */}}
\DoxyCodeLine{64         uint32\_t status;}
\DoxyCodeLine{65 \};}
\DoxyCodeLine{66 }
\DoxyCodeLine{67 \textcolor{keyword}{struct }osmo\_xlm\_prim \{}
\DoxyCodeLine{68         \textcolor{keyword}{struct }osmo\_prim\_hdr oph;}
\DoxyCodeLine{69         \textcolor{keyword}{union }\{}
\DoxyCodeLine{70                 \textcolor{keyword}{struct }osmo\_xlm\_prim\_notify notify;}
\DoxyCodeLine{71                 \textcolor{keyword}{struct }osmo\_xlm\_prim\_error error;}
\DoxyCodeLine{72                 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_reg rk\_reg;}
\DoxyCodeLine{73                 \textcolor{keyword}{struct }osmo\_xlm\_prim\_rk\_dereg rk\_dereg;}
\DoxyCodeLine{74         \} u;}
\DoxyCodeLine{75 \};}
\DoxyCodeLine{76 }
\DoxyCodeLine{77 \textcolor{preprocessor}{\#define msgb\_xlm\_prim(msg) ((struct osmo\_xlm\_prim *)(msg)-\/>l1h)}}
\DoxyCodeLine{78 }
\DoxyCodeLine{79 \textcolor{keywordtype}{char} *osmo\_xlm\_prim\_name(\textcolor{keyword}{struct} osmo\_prim\_hdr *oph);}
\DoxyCodeLine{80 }
\DoxyCodeLine{81 \textcolor{comment}{/* XUA LM-\/SAP towards stack */}}
\DoxyCodeLine{82 \textcolor{keywordtype}{int} osmo\_xlm\_sap\_down(\textcolor{keyword}{struct} osmo\_ss7\_asp *asp, \textcolor{keyword}{struct} osmo\_prim\_hdr *oph);}

\end{DoxyCode}
